Monday, 2 December 2019

Fix Locale Warning in Terminal

Sometimes, or maybe accidentally, warnings are shown in terminal this way:
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

These changes should be made:
(1) Add to file /etc/environment
export LC_ALL=""

(2) Add to file ~/.bash_profile
export LC_ALL=""

(3) Add to file ~/.bashrc
export LC_ALL=""

No comments:

Post a Comment