Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Mar 2000 13:45:08 -0500 (EST)
From:      Evan Leon <evan@officemail.starmedia.com>
To:        freebsd-questions@FreeBSD.org
Cc:        ben@skunk.org
Subject:   Strange error messages in Perl
Message-ID:  <Pine.BSF.4.10.10003021338080.59951-100000@officemail.starmedia.com>

next in thread | raw e-mail | index | archive | help


I'm running 3.4-RELEASE, and I have been getting the following error
message every time Perl is called (a friend of mine has previously seen
the same error, but did not know what the cause was):

bash-2.03$ perl -e 'print "hello!\n"'
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = (unset),
        LC_CTYPE = "en_US",
        LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
hello!
bash-2.03$ 

At first, I thought these messages were urging me to check that the
environment variables specified were set to those values, but that is not
the case.  Just to check, I tried this:

bash-2.03$ export LC_ALL="C";!!  
export LC_ALL=C;perl -e 'print "hello!\n"'
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = "C",
        LC_CTYPE = "en_US",
        LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
hello!
bash-2.03$ 

I am only asking the BSD list because this problem only started happening
when I started using 3.4, and I have never seen anything like it in my
work with earlier versions.  It doesn't seem to be causing any problems
with any programs, I just find it interesting and would like to know what
is causing it, and why it's complaining so much.

And for the record:

bash-2.03$ perl -v
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = "C",
        LC_CTYPE = "en_US",
        LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

This is perl, version 5.005_03 built for i386-freebsd

Thanks in advance,
Evan Leon




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10003021338080.59951-100000>