You are not logged in.

#1 2006-05-13 12:58:15

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Perl locale issue

Recently I've been getting this in the terminal when running certain binaries:

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

What should I install/change to remedy this?


.oO Komodo Dave Oo.

Offline

#2 2006-05-13 15:46:54

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: Perl locale issue

As of glibc 2.3.6, glibc does not provide all locales. You must edit /etc/locale.gen and uncomment the locales you want built, then run locale-gen as root.


I am a gated community.

Offline

#3 2006-05-13 17:33:42

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Perl locale issue

Ok, cheers stonecrest wink


.oO Komodo Dave Oo.

Offline

#4 2006-05-15 23:01:05

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Perl locale issue

Now when I try to run gtkpacman , I get this:

(gtkpacman:14846): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
Traceback (most recent call last):
  File "/usr/bin/gtkpacman", line 62, in ?
    setlocale(LC_ALL, '')
  File "/usr/lib/python2.4/locale.py", line 381, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

How am I supposed to find out which locale it wants? I've got en_GB and en_US iso lines uncommented, and have run locale-gen... :?


.oO Komodo Dave Oo.

Offline

#5 2006-05-15 23:05:41

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Perl locale issue

Giggidy, I generated the UTF8 ones for US and GB and it's ok now ^_^


.oO Komodo Dave Oo.

Offline

Board footer

Powered by FluxBB