LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-21-2007, 10:10 PM   #1
jafriede
LQ Newbie
 
Registered: Sep 2004
Location: USA
Distribution: Slackware 10, Ubuntu 7.04
Posts: 14

Rep: Reputation: 0
Perl locale warning


I am running Slackware 10.0 as a server with kernel 2.6.10. When running a Perl script, I get the following:

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

I have seen a few posts relating to this but have all been with Debian distros. When I type "locale -a" it indicates that "en_US" is supported. If I export LC_ALL="C", the error goes away but I read that it is not really a good solution. Any ideas?

Thanks
 
Old 08-22-2007, 04:15 PM   #2
msantinho
Member
 
Registered: Oct 2005
Location: Lisbon
Distribution: Slackware
Posts: 56

Rep: Reputation: 17
what's the output of:
Code:
$ locale
?
 
Old 08-22-2007, 04:32 PM   #3
jafriede
LQ Newbie
 
Registered: Sep 2004
Location: USA
Distribution: Slackware 10, Ubuntu 7.04
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by msantinho View Post
what's the output of:
Code:
$ locale
?
Output of "locale":

LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE=C
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=

Here is the output of "locale -a". I only included the English listings:

en_AU
en_AU.utf8
en_BW
en_BW.utf8
en_CA
en_CA.utf8
en_DK
en_DK.utf8
en_GB
en_GB.iso885915
en_GB.utf8
en_HK
en_HK.utf8
en_IE
en_IE.utf8
en_IE.utf8@euro
en_IE@euro
en_IN
en_NZ
en_NZ.utf8
en_PH
en_PH.utf8
en_SG
en_SG.utf8
en_US
en_US.iso885915
en_US.utf8
en_ZA
en_ZA.utf8
en_ZW
en_ZW.utf8
 
Old 08-22-2007, 04:43 PM   #4
msantinho
Member
 
Registered: Oct 2005
Location: Lisbon
Distribution: Slackware
Posts: 56

Rep: Reputation: 17
I don't see nothing wrong there.
Check this info: http://perldoc.perl.org/perllocale.html#LOCALE-PROBLEMS
 
Old 08-23-2007, 09:46 AM   #5
jafriede
LQ Newbie
 
Registered: Sep 2004
Location: USA
Distribution: Slackware 10, Ubuntu 7.04
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by msantinho View Post
I don't see nothing wrong there.
Check this info: http://perldoc.perl.org/perllocale.html#LOCALE-PROBLEMS
I guess I will stick with LC_ALL="C".
It works but I'm not quite sure what the ramifications are.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
perl: warning: Falling back to the standard locale ("C"). walterbyrd Debian 11 05-14-2009 08:50 AM
Chronic: perl: warning: Setting locale failed. kushalkoolwal Debian 6 08-03-2007 02:20 PM
"perl: warning: Setting locale failed." System wide problem Darek84CJ Debian 3 01-25-2006 05:22 PM
perl: warning: Please check that your locale settings: Daredevil Linux - Software 1 05-12-2005 10:47 AM
Gdk-WARNING **: locale not supported by C library letdoit Slackware 1 05-28-2004 10:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration