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
[code lang=”bash”]
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
[/code]
Then disconnect and reconnect to your bash.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.