From 2f3dc31d07369957efcec8be36158e73bdbd1844 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 27 Jul 2023 21:18:54 +0000 Subject: Makefile.pl: *.cols: account for non-UTF-8-aware awk 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.PL') 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"} = [ -- cgit v1.2.3-24-ge0c7