diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-03-30 01:36:20 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2011-03-30 01:43:51 +0200 |
commit | 0378e2976b37647362180766a9ed4db5d831e3e3 (patch) | |
tree | 594aacff253ecf460eb38b365a463cc2483726e1 /bashrc/common | |
parent | b32d5773ae9297c597791971173769dcfb2bee47 (diff) | |
download | dotfiles-0378e2976b37647362180766a9ed4db5d831e3e3.tar.gz dotfiles-0378e2976b37647362180766a9ed4db5d831e3e3.tar.xz dotfiles-0378e2976b37647362180766a9ed4db5d831e3e3.zip |
check if locale exists before setting
Diffstat (limited to '')
-rw-r--r-- | bashrc/common/locale.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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" |