Common Error in CentOS: Failed to set locale, defaulting to C

Failed to set locale, defaulting to C

You can see this often in CentOS because you never set the locale for your Linux.
You can try this

echo "export LC_ALL=en_US.UTF-8" >> /etc/profile
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_COLLATE=C
export LC_CTYPE=en_US.UTF-8

Then disconnect and reconnect to your bash.

Author: Justin Soo

https://plus.google.com/105604283199591348183