Fix check-man for newer man-db
authorIustin Pop <iustin@google.com>
Wed, 2 Jun 2010 13:51:55 +0000 (15:51 +0200)
committerIustin Pop <iustin@google.com>
Wed, 2 Jun 2010 14:14:06 +0000 (16:14 +0200)
Again, check-man :)

Commit 5fa1642226 removed LC_ALL=C, since that breaks the check.
However, with no LANG/LC_* variables, man-db is still broken.

We import the new lintian behaviour, i.e. LANG=C (which seems to differ
from LC_ALL=C, even with empty environment). I'm not sure of the
difference, though.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

autotools/check-man

index fc93117..34c3db8 100755 (executable)
@@ -20,7 +20,7 @@
 
 set -e
 
 
 set -e
 
-! MANWIDTH=80 \
+! LANG=C MANWIDTH=80 \
   man --warnings --encoding=utf8 --local-file "$1" 2>&1 >/dev/null | \
   grep -v -e "cannot adjust line" -e "can't break line" | \
   grep .
   man --warnings --encoding=utf8 --local-file "$1" 2>&1 >/dev/null | \
   grep -v -e "cannot adjust line" -e "can't break line" | \
   grep .