From 4e5ef72bb16946d7ca682990fc8c27bd1010036e Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 15 Feb 2021 15:58:22 +0000 Subject: [PATCH] Fix LANG handling --- roles/home-cli/files/shrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/home-cli/files/shrc b/roles/home-cli/files/shrc index 00e990e..a42d17d 100644 --- a/roles/home-cli/files/shrc +++ b/roles/home-cli/files/shrc @@ -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