You are not logged in.

#1 2013-01-25 18:58:17

doru001
Member
Registered: 2013-01-25
Posts: 138

can't set the locale; make sure $LC_* and $LANG are correct [SOLVED]

I get this message on a clean install when I run man and many other commands. Even for firefox I get: Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale.

I did make some font configuration, but I closely followed the installation instructions on https://wiki.archlinux.org/ and I believe that I had this message even before I installed the gui.

Where should I start?

Last edited by doru001 (2013-02-03 10:29:51)

Offline

#2 2013-01-25 19:14:29

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: can't set the locale; make sure $LC_* and $LANG are correct [SOLVED]

Post the output of locale -a and locale.

Offline

#3 2013-01-25 19:21:41

doru001
Member
Registered: 2013-01-25
Posts: 138

Re: can't set the locale; make sure $LC_* and $LANG are correct [SOLVED]

$ 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
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX

$ 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.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Offline

#4 2013-01-25 19:25:09

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: can't set the locale; make sure $LC_* and $LANG are correct [SOLVED]

Make sure /etc/locale.gen is edited properly then (re)run locale-gen as root.

Offline

#5 2013-01-25 19:33:35

doru001
Member
Registered: 2013-01-25
Posts: 138

Re: can't set the locale; make sure $LC_* and $LANG are correct [SOLVED]

Thank you very much for your time. I obviously forgot to run locale-gen at install, I don't know why. It is clearly specified in https://wiki.archlinux.org/index.php/Be … ide#Locale.

Last edited by doru001 (2013-01-25 19:40:49)

Offline

Board footer

Powered by FluxBB