You are not logged in.

#1 2006-10-13 06:22:29

brokephilos
Member
Registered: 2006-10-13
Posts: 6

locale issues.

I first noticed this when I tried a trial run of pypanel; it crashed outright and was pleasant enough to inform me about my locale issues:

[meta@brokephilos ~]$ pypanel &
[1] 2878
[meta@brokephilos ~]$ Traceback (most recent call last):
  File "/usr/bin/pypanel", line 948, in ?
    locale.setlocale(locale.LC_ALL, "")
  File "/usr/lib/python2.4/locale.py", line 381, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

[1]+  Exit 1                  pypanel

So I checked out locale by running locale, and here's the output of that:

[meta@brokephilos ~]$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE=C
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
[meta@brokephilos ~]$

Any suggestions? I'm new to Arch, but as far as I can tell my /etc/rc.conf
and /etc/locale.gen files appear to be perfectly usable.  Thanks much.

Offline

#2 2006-10-13 07:05:26

STiAT
Member
From: Vienna, Austria
Registered: 2004-12-23
Posts: 603

Re: locale issues.

Hello first of all, and welcome to Arch!

I installed PyPanel python-xlib and imlib now and gave it a shot if the packages are working at all - they do.

Check the following (if possible)
LOCALE in /etc/rc.conf set to en_US.utf8

LOCALE="en_US.utf8"

Does

stat /usr/share/i18n/locales/en_US

exists in your filesystem?

If it does, you might have something else selected for your locale which isn't available.
To verify your setting type

locale -a

You might want to |grep en_US.utf8, or the value selected in you LOCALE="" in the /etc/rc.conf (the step before)

You also can use

printenv | egrep '(LC_*|LANG)'

Verify the locale you actually selected is available in the list.

If your locale-archive is broken you may want to run

localedef -i en_US -c -f UTF-8 en_US.UTF-8

Maybe you also just forgot to run locale-gen after editing /etc/locale.gen

locale-gen

I'm currenlty using de_AT.utf8, but i don't think the locale file itself is damaged, or that it's missing in your filesystem. Rather a configuration error.

// STi


Ability is nothing without opportunity.

Offline

#3 2006-10-13 10:45:36

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: locale issues.

brokephilos wrote:

Any suggestions? I'm new to Arch, but as far as I can tell my /etc/rc.conf
and /etc/locale.gen files appear to be perfectly usable.  Thanks much.

Did you run locale-gen after changing /etc/locale.gen?


to live is to die

Offline

#4 2006-10-13 13:57:52

ToastedToad
Member
From: Sequim, WA
Registered: 2006-03-08
Posts: 79

Re: locale issues.

@ STiAT

Thank you, worked like a charm..!!

Offline

#5 2006-10-13 15:55:46

brokephilos
Member
Registered: 2006-10-13
Posts: 6

Re: locale issues.

I just forgot to run locale-gen after I edited /etc/locale.gen.  Silly me.  :oops:

Offline

Board footer

Powered by FluxBB