Hi guys,
Whenever I run a Perl program or Perl itself, I see this warning message:
Code:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LC_CTYPE = "en_US.UTF-8",
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
I read through
this page. “ls /usr/share/locale” does not exactly list en_US, but it does display en_US.ISO8859-1, en_US.ISO8859-15, and en_US.UTF-8. Running “env LC_ALL=en_US.UTF-8 perl” makes little difference:
Code:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = en_US.UTF-8,
LC_CTYPE = "en_US.UTF-8",
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Running “env PERL_BADLANG=0 perl”
does solve the problem, but I have a strong feeling that’s not the right way to go about it…