From 3279d52505023c3cf69df0b55e047641f5437e2e Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Fri, 25 May 2018 21:03:08 -0700 Subject: [PATCH] Change locale detection. --- dotfiles/env | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}