Re: Locale setting errors in Perl

2003-09-28 Thread Chris Cantrall
I can sympathize.  More to the point, I just fixed this.  And while the 
solution may be in the archives, there are also several other solutions 
in the archives for similar problems which didn't work for me.

If your shell is tcsh, put the following 2 lines in your .tcshrc 
login/setup file.

setenv LANG en_US
setenv LC_ALL C
The funny thing was, most examples I saw had equal signs = in there 
somewhere, and that didn't work at all.

HTH.

Chris
http://perlmonks.org/index.pl?node=Louis_Wu
On Thursday, Sep 25, 2003, at 14:19 US/Pacific, Kevin Barry wrote:

I gave up trying to add modules to perl 5.6.0 and upgraded rather 
painlessly
to 5.8.0. Now I get the error below when running any perl scripts:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LANG = en_US
 are supported and installed on your system.
perl: warning: Falling back to the standard locale (C).
I've tried the environment settings on the perl upgrade instructions 
on the
Apple website and I made the changes to the environment.plist file as
detailed on another site with no luck.

Is there possibly another fix?

Kevin



Re: Locale setting errors in Perl

2003-09-28 Thread Doug McNutt
At 01:58 -0700 9/28/03, Chris Cantrall wrote:
If your shell is tcsh, put the following 2 lines in your .tcshrc login/setup file.
setenv LANG en_US
setenv LC_ALL C

Remember though that your .login script will not be executed unless you log in to 
Darwin using Terminal or externally with ssh.

The result will be that execution of perl stuff via AppleScript, BBEdit worksheets, 
Project Builder, the Execute-Text Service, and others will still have problems.

Apple can repair it by making the login which you do with the startup window be a 
true *NIX login. but that seems unlikely.


-- 
-- As a citizen of the USA if you see a federal outlay expressed in $billion then 
multiply it by 4 to get your share in dollars. --


Re: Locale setting errors in Perl

2003-09-28 Thread Vic Norton
And, if you run scripts from BBEdit like I do, you should write something like

?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist SYSTEM file://localhost/System/Library/DTDs/PropertyList.dtd
plist version=0.9
dict
keyLANG/key
stringen_US/string
keyLC_ALL/key
stringC/string
keyMAILADDRESS/key
string[EMAIL PROTECTED]/string
/dict
/plist
in ~/.MacOSX/environment.plist. (Forget about the MAILADDRESS; that is mine.)

Regards,

Vic

At 1:58 AM -0700 9/28/03, Chris Cantrall wrote:
If your shell is tcsh, put the following 2 lines in your .tcshrc 
login/setup file.

setenv LANG en_US
setenv LC_ALL C


--
Vic Norton
vic at norton dot name


Re: Locale setting errors in Perl

2003-09-25 Thread Phil Dobbin
On 25/9/03 22:19, Kevin Barry [EMAIL PROTECTED] wrote:

 I gave up trying to add modules to perl 5.6.0 and upgraded rather painlessly
 to 5.8.0. Now I get the error below when running any perl scripts:
 
 perl: warning: Setting locale failed.
 perl: warning: Please check that your locale settings:
 LC_ALL = (unset),
 LANG = en_US

[...]

This is covered extensively in this list's archives. Try looking there.

HTH,

Regards,

Phil.
-- 
Playstation?  Of course Perl runs on Playstation.
-- Jarkko Hietaniemi



Re: Locale setting errors in Perl

2003-09-25 Thread Doug McNutt
At 17:19 -0400 9/25/03, Kevin Barry wrote:
perl: warning: Please check that your locale settings:
   LC_ALL = (unset),
   LANG = en_US

environment.plist lives in $HOME/.MacOSX/ (with a leading dot)

It is read only at login time. And that means login to the OS neXt GUI and not login 
via Terminal or ssh. Just creating the .plist won't do anything until you logout and 
login again.

And. . . I do wish Apple would fix that. A login should be a login to Darwin wherever 
it is performed.

Your LC_ALL = (unset) line is suspect:  Here is my file.

?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
keyLANG/key
stringus_ENG/string
keyLC_ALL/key
stringC/string
keyPATH/key

string/Users/doug/bin:/opt/bin/perl/bin:/bin:/sbin:/usr/bin:/usr/sbin:/Developer/Tools/string
keyRCCOUNT/key
string0/string
keySHELLOG/key
string/Users/doug/logs/shel_log/string
keySERVER_NAME/key
stringEarth/string
/dict
/plist

-- 
--  There are 10 kinds of people:  those who understand binary, and those who don't 
--