http://qs321.pair.com?node_id=258873

hbmartin has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I keepgetting this message whenever I run a perl script:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en"
are supported and installed in your system
perl: warning: Falling back to the standard locale ("C").

What can I do to fix this? I'm on a linux system.
Thanks,
Harold

Replies are listed 'Best First'.
Re: How do I fix locale warnings?
by chromatic (Archbishop) on May 17, 2003 at 20:03 UTC

    Set the LC_ALL environment variable to C. If you're using bash as your shell, you can put this in your .bashrc: export LC_ALL='C';.

    This may have an effect on other programs on your system, though.