]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
Makefile.pl: *.cols: account for non-UTF-8-aware awk
authorEric Wong <e@80x24.org>
Thu, 27 Jul 2023 21:18:54 +0000 (21:18 +0000)
committerEric Wong <e@80x24.org>
Thu, 27 Jul 2023 23:23:07 +0000 (23:23 +0000)
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.

Makefile.PL

index 579245a1e42e7d041deb29408de3737f8a620150..710d705dbecd00c5dee693c19856e7c2084cf48e 100644 (file)
@@ -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"} = [