Sunday, March 20, 2016

Fix Locale Errors

Running this will fix locale errors: 
 
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_CTYPE="en_US.UTF-8"
export LC_NUMERIC="en_US.UTF-8"
export LC_TIME="en_US.UTF-8"
export LC_COLLATE="en_US.UTF-8"
export LC_MONETARY="en_US.UTF-8"
export LC_MESSAGES="en_US.UTF-8"
export LC_PAPER="en_US.UTF-8"
export LC_NAME="en_US.UTF-8"
export LC_ADDRESS="en_US.UTF-8"
export LC_TELEPHONE="en_US.UTF-8"
export LC_MEASUREMENT="en_US.UTF-8"
export LC_IDENTIFICATION="en_US.UTF-8"
export LC_ALL=en_US.UTF-8

dpkg-reconfigure locales 
 
To make the change permanent, I ran
update-locale LC_CTYPE=en_US.UTF-8 
which writes to /etc/default/locale. 
 
If you use bash as your shell, you can put these lines in your
~/.bashrc and ~/.profile

No comments:

Post a Comment