Change locale detection.

This commit is contained in:
David Tomaschik
2018-05-25 21:03:08 -07:00
parent 939c604381
commit 3279d52505

View File

@@ -27,9 +27,9 @@ export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
export GPG_ID=7FD58D9A196DCEEEAD671F94F4D7A7915DEA789B
# Setup locale
if test -f /usr/share/i18n/SUPPORTED ; then
for l in en_US.UTF-8 C ; do
if grep -q "${l}" /usr/share/i18n/SUPPORTED ; then
if test -x /usr/bin/locale ; then
for l in en_US.UTF-8 C.UTF-8 C ; do
if /usr/bin/locale -a | grep -q "${l}" ; then
export LC_CTYPE=${l}
export LC_NUMERIC=${l}
export LC_TIME=${l}