Second attempt at fixing check-man
authorIustin Pop <iustin@google.com>
Wed, 2 Jun 2010 14:48:54 +0000 (16:48 +0200)
committerIustin Pop <iustin@google.com>
Wed, 2 Jun 2010 15:09:03 +0000 (17:09 +0200)
I was wrong, actually LANG-vs-LC_ALL only fixed one case, by mistake. To
get proper UTF-8 encoding, we need to enforce any UTF-8 locale. We
choose the 'default' of en_US.UTF-8.

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

autotools/check-man

index 34c3db8..f52415d 100755 (executable)
@@ -20,7 +20,7 @@
 
 set -e
 
-! LANG=C MANWIDTH=80 \
+! LANG=en_US.UTF-8 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 .