You are not logged in.

#1 2006-11-06 22:56:07

Convergence
Member
Registered: 2005-07-02
Posts: 377

locale problems [resolved]

first i noticed this error when I started (gqview worked fine other than this error)  gqview from the command line:

(process:28591): Gdk-WARNING **: locale not supported by C library

(gqview:28591): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.

Then i noticed this error when trying to run hp-toolbox (which wouldn't run at all)

error: Unable to set locale.
Traceback (most recent call last):
  File "/usr/bin/hp-toolbox", line 38, in ?
    from base.g import *
  File "/usr/share/hplip/base/g.py", line 136, in ?
    locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
  File "/usr/lib/python2.4/locale.py", line 381, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

This is what is in my rc.conf:

 cat /etc/rc.conf | grep -i locale
# LOCALE: available languages can be listed with the 'locale -a' command
LOCALE="en_US.utf8"

and this is when I run locale -a

locale -a
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
C
POSIX

any suggestions?


It's a very deadly weapon to know what you're doing
---  William Murderface

Offline

#2 2006-11-06 23:06:00

crouse
Arch Linux f@h Team Member
From: Iowa - USA
Registered: 2006-08-19
Posts: 907
Website

Re: locale problems [resolved]

EDIT  /etc/locale.gen

for english....

Uncomment the one english line.........

#en_SG.UTF-8    UTF-8
#en_SG  ISO-8859-1
en_US.UTF-8     UTF-8
#en_US  ISO-8859-1
#en_ZA.UTF-8    UTF-8

Then run

  locale-gen

Offline

#3 2006-11-06 23:48:11

Convergence
Member
Registered: 2005-07-02
Posts: 377

Re: locale problems [resolved]

Thank you crouse!  I've never had to do that before...


It's a very deadly weapon to know what you're doing
---  William Murderface

Offline

Board footer

Powered by FluxBB