diff options
Diffstat (limited to 'bashrc/common')
-rw-r--r-- | bashrc/common/locale.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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" |