oops, forgot to CC: the list.

Kay

Begin forwarded message:

From: Kay Roepke <[EMAIL PROTECTED]>
Date: Mon Mar 10, 2003  3:15:26  AM Europe/Berlin
To: Vicki Brown <[EMAIL PROTECTED]>
Subject: Re: perl: warning: Setting locale failed.


On Monday, March 10, 2003, at 12:12 AM, Vicki Brown wrote:
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").


This warning repeats for every subsequent extraction. It's getting old.
What do I need to do to make it go away? Is setlocale missing in Mac OS X?
Can I get it? Do I have to set up locale definitions?


Never having had this be an issue before, I'm not sure how to proceed.

This is due to a problem of OS X with respect to proper locale files.
There are a couple of solutions (all of which are outlined in perllocale (perldoc perllocale)):


Probably the quickest is to tell Perl to shut up about it, by setting the PERL_BADLANG environment variable to 0.
For this to be in the env of every process for one single given account on your machine is to put the following
into your ~/.MacOSX/environment.plist file (create it if doesn't exist - and relogin in).


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
<key>PERL_BADLANG</key>
<string>0</string>
</dict>
</plist>



Regards,


Kay

P.S.: Of course the *proper* way of doing this involves your suggestion fixing the locale files. A lot of darwin users would be obliged to you ;-)




Reply via email to