From 382dcf28f1cf6b52391340dfac094cfe7a40528c Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 22 Feb 2006 04:09:00 +0000 Subject: [PATCH] be inteligent about setting lang where possible --- .bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- 2.39.2