From: Don Armstrong <don@donarmstrong.com>
Date: Wed, 22 Feb 2006 04:09:00 +0000 (+0000)
Subject: be inteligent about setting lang where possible
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=382dcf28f1cf6b52391340dfac094cfe7a40528c;p=home-base.git

be inteligent about setting lang where possible
---

diff --git a/.bashrc b/.bashrc
index 6ff2b35..fc875dd 100644
--- 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;