LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-27-2004, 09:14 AM   #1
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Rep: Reputation: 15
perl warning


using redhat 8, whenever i run any perl script, i get this:

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

the script DOES run just fine......

IF i run perl_script 2>/dev/null, it works just fine

how (where) do i get rid of these warnings
 
Old 01-31-2004, 09:18 AM   #2
Siggn
LQ Newbie
 
Registered: Jan 2004
Distribution: Debian
Posts: 5

Rep: Reputation: 0
Setting locale

Hello
I was experiencing exactly the same symptoms with my debian installation.
With the help of this posting:
Quote:
Originally posted by hw-tph
Try dpkg-reconfigure locales and select the locales you want, then set the default (using LC_CTYPE and LANG) in /etc/profile.

Håkan
I was able to fix it. First I installed locales and localeconf (Debian- stuff ?)
But what made the difference was to insert locale settings in /etc/profile
LC_ALL="C"
LANG="C"
LC_CTYPE="C"
export LC_ALL LANG LC_CTYPE

You could replace C with your locale.
Then start a shell, and you are OK.
Thanks Håkan
 
  


Reply



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
perl: warning: Please check that your locale settings: Daredevil Linux - Software 1 05-12-2005 10:47 AM
perl warning using slax 4.2.0.. slaxer Linux - Wireless Networking 4 02-03-2005 08:49 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM
chrooting apache v2 (php, ssl, perl support) ; perl configuration markus1982 Linux - Security 3 01-26-2003 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:32 PM.

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