summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-12-07 19:48:00 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2011-12-07 19:48:00 +0100
commit7b1306a069bd761118298a45b201008af19af845 (patch)
tree953850c8ef6654a1436b96d19cef6dab55c123db /bashrc
parent41b7d9eb8a2f27726feb7e33828af5b9d9ec54b7 (diff)
downloaddotfiles-7b1306a069bd761118298a45b201008af19af845.tar.gz
dotfiles-7b1306a069bd761118298a45b201008af19af845.tar.xz
dotfiles-7b1306a069bd761118298a45b201008af19af845.zip
fixed handling of locales
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc/common/locale.sh4
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"