DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 24th November 2008
Theta Theta is offline
New User
 
Join Date: Nov 2008
Posts: 1
Default Perl locale

Hi guys,

Whenever I run a Perl program or Perl itself, I see this warning message:
Code:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = (unset),
        LC_CTYPE = "en_US.UTF-8",
        LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
I read through this page. “ls /usr/share/locale” does not exactly list en_US, but it does display en_US.ISO8859-1, en_US.ISO8859-15, and en_US.UTF-8. Running “env LC_ALL=en_US.UTF-8 perl” makes little difference:
Code:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = en_US.UTF-8,
        LC_CTYPE = "en_US.UTF-8",
        LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Running “env PERL_BADLANG=0 perl” does solve the problem, but I have a strong feeling that’s not the right way to go about it…
Reply With Quote
 


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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
perl expression syntax qsecofr Programming 3 16th February 2009 12:56 PM
Reformatting ftp listings with awk and perl J65nko Guides 0 24th December 2008 03:04 AM
Learning Perl mtx Book reviews 7 22nd October 2008 05:55 PM
perl/tk bsdnewbie999 OpenBSD Packages and Ports 4 8th August 2008 12:34 AM
Perl Script c0mrade Programming 1 26th June 2008 05:04 AM


All times are GMT. The time now is 05:57 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick