You are not logged in.

#1 2007-02-07 00:34:10

The Vaxorcist
Member
Registered: 2005-12-08
Posts: 18

Perl doesn't like utf8

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

Perl doesn't like it when I have my locale set to en_US.utf8. It works fine with just en_US. Is there a fix for this?

Offline

#2 2007-02-07 00:57:29

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: Perl doesn't like utf8

Edit /etc/locale.gen, uncomment your locale (en_US.utf8), and run locale-gen.

Offline

#3 2007-02-07 02:33:16

The Vaxorcist
Member
Registered: 2005-12-08
Posts: 18

Re: Perl doesn't like utf8

Thanks very much.

Offline

#4 2008-02-03 17:59:41

mmccaskill
Member
From: NC
Registered: 2005-02-21
Posts: 163

Re: Perl doesn't like utf8

skymt wrote:

Edit /etc/locale.gen, uncomment your locale (en_US.utf8), and run locale-gen.

Sorry to bring up old posts but is there a better way than this solution?

Offline

#5 2008-02-03 20:13:01

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: Perl doesn't like utf8

Why you don't want to generate a locale?


(lambda ())

Offline

#6 2008-02-03 20:35:24

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: Perl doesn't like utf8

How could you set perl to a locale if that locale doesn't exist?

Maybe there are ways to encode just specific things in utf8, rather than having to change all of per's locale. If this is what you mean, then read the perldoc smile

Offline

Board footer

Powered by FluxBB