http://www.perlmonks.org?node_id=48210

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

I'm using a combo roll-your-own/Mandrake 7.2 Linux distribution, with perl-5.6.0-17mdk and associated packages installed. My problem is this:
==========
matt@mattman ~ > perl -v
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LC_MONETARY = "en_US",
        LC_CTYPE = "en_US",
        LC_NUMERIC = "en_US",
        LC_MESSAGES = "en_US",
        LC_TIME = "en_US",
        LC_COLLATE = "en_US",
        LANG = "en"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

This is perl, v5.6.0 built for i386-linux

Copyright 1987-2000, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
==========
I can't seem to figure out how to set the locale and stuff to get rid of these messages. Using the set command doesn't list them, but setenv does. I'm using tcsh, by the way. Same thing happens if I use bash. Anybody have any answers, or should I just rebuild from source?

mattman

Great spirits have always encountered violent opposition from mediocre minds
Albert Einstein

Replies are listed 'Best First'.
Re: Problems with 5.6.0 in Mandrake
by dchetlin (Friar) on Dec 25, 2000 at 02:48 UTC
    [~] $ perldiag locale perl: warning: Setting locale failed. (S) The whole warning message will look something like: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = "En_US", LANG = (unset) are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Exactly what were the failed locale settings varies. In the above the settings were that the LC_ALL was "En_US" and the LANG had no value. This error means that Perl detected that you and/or your system administrator have set up the so-called variable system but Perl could not use those settings. This was not dead serious, fortunately: there is a "default locale" called "C" that Perl can and will use, the script will be run. Before you really fix the problem, however, you will get the same error message each time you run Perl. How to really fix the problem can be found in the perllocale manpage section LOCALE PROBLEMS. [~] $

    perllocale has a whole lot of information on how to solve/fix/mute this issue.

    -dlc