X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/518799a2cfc383364987d0f93fa7b29a482bda81..da4e8725cdfeb62527f9b900f3a21afc88e89e3a:/test/manpages/test-manpages diff --git a/test/manpages/test-manpages b/test/manpages/test-manpages index 315754b2..768c8f26 100755 --- a/test/manpages/test-manpages +++ b/test/manpages/test-manpages @@ -37,7 +37,7 @@ warnings="-ww" #### If the prefix is too long, groff will report that it can't break #### the `aliasfiles' line in ali.1. length=`echo $prefix | awk '{print length($0)}'` -[ $length -gt 35 ] && warnings="${warnings} -Wbreak" +[ $length -gt 32 ] && warnings="${warnings} -Wbreak" #### OpenBSD's mandoc spits out a lot of "unbalance .el request" warnings; #### -Wel suppresses them. @@ -48,8 +48,9 @@ fi rm -f "$actual" touch "$actual" - for manpage in man?/*.?; do + LC_ALL=C grep -n '[^ -~]' /dev/null "$manpage" 2>&1 | + sed 's/^/non-ascii:/' >>"$actual" groff -Tutf8 -mandoc $warnings "$manpage" >/dev/null 2>>"$actual" done