Fix LANG handling
This commit is contained in:
parent
fd41fd2973
commit
4e5ef72bb1
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ case "$LANG" in
|
|||
PAPERSIZE="a4"
|
||||
;;
|
||||
esac
|
||||
if [ -x /usr/bin/locale ] && [ $(locale -a 2>/dev/null | grep ${LANG-invalid} | sed 's/UTF-8//' | wc -l) -eq 0 ]; then
|
||||
if [ -x /usr/bin/locale ] && [ $(locale -a 2>/dev/null | sed 's/.utf8$/.UTF-8/' | grep ${LANG-invalid} | wc -l) -eq 0 ]; then
|
||||
LANG=C
|
||||
LANGUAGE=C:en
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue