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(-)

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"} = [

Reply via email to