Fixing that really irritating perl: warning: Setting locale failed
Posted by adminSep 16
Anytime I’ve been running a perl based script on my leopard box I got this really irritating output with whatever else I was expecting:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = “En_US”,
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
With a quick Google search I found an answer. Basically the solution / fix is to make sure the following is set in either your ~/.profile or ~/.bashrc or ~/.cshrc
# This setting is for the new UTF-8 terminal support
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
No comments
You must be logged in to post a comment.