be inteligent about setting lang where possible
authorDon Armstrong <don@donarmstrong.com>
Wed, 22 Feb 2006 04:09:00 +0000 (04:09 +0000)
committerDon Armstrong <don@donarmstrong.com>
Wed, 22 Feb 2006 04:09:00 +0000 (04:09 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index 6ff2b35..fc875dd 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -48,7 +48,12 @@ if [ "$PS1" ]; then
     fi;
     
     alias aumix2='aumix -d /dev/mixer1 -I'
-    export LANG="en_US.UTF-8"
+    if locale -a |grep -qi en_US.utf8; then
+       LANG="en_US.UTF-8"
+    else
+       LANG=C
+    fi;
+    export LANG
     export PATH="~/bin:$PATH"
     if [ ! -e ~/tmp ]; then
        mkdir ~/tmp;