about summary refs log tree commit homepage
path: root/Makefile.PL
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-07-27 21:18:54 +0000
committerEric Wong <e@80x24.org>2023-07-27 23:23:07 +0000
commit2f3dc31d07369957efcec8be36158e73bdbd1844 (patch)
treecdbb9d11f56e211c1760785d137c5bb742c7f19b /Makefile.PL
parent590023f6c3289810539b0994fd5c3216d81c9259 (diff)
downloadpublic-inbox-2f3dc31d07369957efcec8be36158e73bdbd1844.tar.gz
When checking line length limits, the `length()' function of
mawk doesn't count non-ASCII characters properly in UTF-8
locales.  Force the man(1) output to use C locale and use normal
`-' instead of multi-byte dash characters.
Diffstat (limited to 'Makefile.PL')
-rw-r--r--Makefile.PL2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.PL b/Makefile.PL
index 579245a1..710d705d 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -81,7 +81,7 @@ for my $i (@sections) {
                 $t->{"Documentation/$m.html : $txt"} = [ "\$(txt2pre) <$txt",
                                                         "touch -r $txt \$@" ];
                 $t->{".$m.cols : $m.$i"} = [
-                        "\@echo CHECK80 $m.$i;".
+                        "\@echo CHECK80 $m.$i; LC_ALL=C LANG=C ".
                         "COLUMNS=80 \$(MAN) ./$m.$i | \$(check_man)",
                         '>$@' ];
                 $t->{".$m.lexgrog: $m.$i"} = [