diff options
Diffstat (limited to '')
-rw-r--r-- | bashrc/net/zedat.fu-berlin.de/locale.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bashrc/net/zedat.fu-berlin.de/locale.sh b/bashrc/net/zedat.fu-berlin.de/locale.sh new file mode 100644 index 0000000..e385de0 --- /dev/null +++ b/bashrc/net/zedat.fu-berlin.de/locale.sh @@ -0,0 +1,12 @@ +# find a usuable locale +eval unset ${!LC_*} LANG + +if hash locale >/dev/null 2>&1 ; then + if locale -a | grep "en_US.iso885915" >/dev/null 2>&1 ; then + export LANG="en_US.iso885915" + elif locale -a | grep "en_US.iso88591" >/dev/null 2>&1 ; then + export LANG="en_US.iso88591" + fi +fi + +export LC_COLLATE="C" |