Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Perl is warning on the locale settings

by uday_sagar (Scribe)
on Sep 11, 2012 at 10:40 UTC ( [id://992974]=perlquestion: print w/replies, xml ) Need Help??

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

Hi Monks, I am running some perl scripts in windows hosts over LSF. The code throws this error message:
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C")

I have been digging the problem in going through this link

But couldn't find the satisfactory solution for the case of windows OS. I have checked the locale settings in "administrative" tab of "clock, language and region" section of control panel. This still points to "English(United States)". (as suggested by the perl warning)

Waiting for your valuable suggestions!

Thanks in advance.

Replies are listed 'Best First'.
Re: Perl is warning on the locale settings
by Anonymous Monk on Sep 11, 2012 at 16:07 UTC
    LC_ALL & LANG are Environment Variables. While the Language and Region Control Panel Applet may effect the LANG variable, The LC_ALL variable is controlled directly in the Environment Variables tab of the System Control Panel Applet.

    More background available at http://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html.

    The question you have to ask yourself is 'what exactly is your script trying to do with the Locale information?' and more importantly 'where are you located?'. Then you may have some clue as to what values to which you might want to set those variables.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://992974]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2024-04-18 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found