]> git.donarmstrong.com Git - home-base.git/commitdiff
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 6ff2b358b468536205e5313123eef5768c5bcc12..fc875dd4279c88c4aebd5c551d5e8e07b33c2085 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;