On Wednesday, January 15, 2003, at 03:36 PM, Jens-Christoph Brendel wrote:
no don't worry you're looking for a solution, been there meself. But maybe we're talking about different errors - the solution I'm offering is for the following error:I hope I don't getting on your nerves,
"perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LANG = "de"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
This is perl, v5.8.0 built for darwin-thread-multi "
This still being the case the error is thrown up because LC_ALL, the default locale, is not set
but your explanation do not fit to my observations. Before I set "LC_LANG=C" in the environment.plist I got the mentioned error message by example after I entered "perl -v" in a terminal window by example.that sounds correct - the default locale for perl isn't set - perl complains
There is no 'use locale' pragma but perl didn't ignored the "LANG=de" setting in my shell environment.presumably you ran this in the shell which would also be consistent - the shell adds the missing ENV variable for LANG, but you didn't get the shell to set LC_ALL=C
and this is the point I believe you're missing - LC_ALL must be set to C or perl complains. Have you tried setting it?With these settings (LC_ALL unset, LANG=de in the shell environment)
The whole of the locale machinery is built around the fact this constant will be there and that is what the (above) warning is saying:
"I can't find a value for LC_ALL but so you can get pattern matching and comparisions of data I'm defaulting to the C locale anyway, you might want to check into things your end"
HTH
Robin