On Tuesday, February 4, 2003, at 05:14  AM, Pavel Stranak wrote:
I had perviously discussed problem after installing perl 5.8:

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

but suggested help: "setenv LANG C" helps only a little.
No, the suggested help is "setenv LC_ALL C".

Alternatively, to not specify a locale, do "unsetenv LANG".


My script for counting character frequencies in texts used to work on czech, chinese and anything else under v5.6. Now it is good only for english.

I need perl to work with ANY language, so what LANG should I set? (And why did previous version work with "LANG=en"?)
You can look around in /usr/share/locale/ and see what locales are present on your system. The system will probably support many locales - but I'm not very familiar with how well Perl will support all the locales of the system.

See also "man mklocale".

-Ken

Reply via email to