diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-12-07 19:48:00 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2011-12-07 19:48:00 +0100 |
commit | 7b1306a069bd761118298a45b201008af19af845 (patch) | |
tree | 953850c8ef6654a1436b96d19cef6dab55c123db /bashrc/common | |
parent | 41b7d9eb8a2f27726feb7e33828af5b9d9ec54b7 (diff) | |
download | dotfiles-7b1306a069bd761118298a45b201008af19af845.tar.gz dotfiles-7b1306a069bd761118298a45b201008af19af845.tar.xz dotfiles-7b1306a069bd761118298a45b201008af19af845.zip |
fixed handling of locales
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" |