summaryrefslogtreecommitdiffstats
path: root/bashrc/common/locale.sh
blob: b75b3aaa167d9279c16a167797e684610b55fb71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# find a usuable locale

eval unset ${!LC_*} LANG

if hash locale 2>&1 >/dev/null ; then
    if locale -a | grep "en_US.UTF-8" 2>&1 >/dev/null ; then
	    export LANG="en_US.UTF-8"
    elif locale -a | grep "en_US.utf8" 2>&1 >/dev/null ; then
	    export LANG="en_US.utf8"
    fi
fi

export LC_COLLATE="C"