From 7b1306a069bd761118298a45b201008af19af845 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 7 Dec 2011 19:48:00 +0100 Subject: fixed handling of locales --- bashrc/common/locale.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bashrc/common/locale.sh b/bashrc/common/locale.sh index cfe9f26..b337292 100644 --- a/bashrc/common/locale.sh +++ b/bashrc/common/locale.sh @@ -2,8 +2,10 @@ eval unset ${!LC_*} LANG -if [ -e "/usr/share/locales/en_US.UTF-8" ]; then +if locale -a | grep "en_US.UTF-8" 2>&1 >/dev/null ; then export LANG="en_US.UTF-8" +elif locale -a | grep "en_US.utf8" 2>&1 >/dev/null ; then + export LANG="en_US.utf8" fi export LC_COLLATE="C" -- cgit v1.2.3