From 0378e2976b37647362180766a9ed4db5d831e3e3 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 30 Mar 2011 01:36:20 +0200 Subject: check if locale exists before setting --- bashrc/common/locale.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bashrc/common') diff --git a/bashrc/common/locale.sh b/bashrc/common/locale.sh index 97c3f17..cfe9f26 100644 --- a/bashrc/common/locale.sh +++ b/bashrc/common/locale.sh @@ -1,5 +1,9 @@ # find a usuable locale eval unset ${!LC_*} LANG -export LANG="en_US.UTF-8" + +if [ -e "/usr/share/locales/en_US.UTF-8" ]; then + export LANG="en_US.UTF-8" +fi + export LC_COLLATE="C" -- cgit v1.2.3