summaryrefslogblamecommitdiffstats
path: root/bashrc/common/locale.sh
blob: 72c70d3cf3ce7fa777293698c945e0b0a9cc3081 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                        
 

                                                            
                                     
                                                             

                                    

  
                     
# find a usuable locale

eval unset ${!LC_*} LANG

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

export LC_COLLATE="C"