Fix LANG handling

This commit is contained in:
Anthony Rose 2021-02-15 15:58:22 +00:00
parent fd41fd2973
commit 4e5ef72bb1

View file

@ -102,7 +102,7 @@ case "$LANG" in
PAPERSIZE="a4" PAPERSIZE="a4"
;; ;;
esac 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 LANG=C
LANGUAGE=C:en LANGUAGE=C:en
fi fi