diff --git a/dotfiles/env b/dotfiles/env index dc78aed..afc3486 100755 --- a/dotfiles/env +++ b/dotfiles/env @@ -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}