You are not logged in.

#1 2008-09-14 02:45:23

Skofo
Member
Registered: 2008-08-21
Posts: 36

[solved]Locale problems =(

I seem to have a problem setting up my locale. Can anyone spot what I'm doing wrong, please?

This is what I get after running the 'locale' and 'locale -a' commands:

[sko@OGC ~]$ 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_EN.utf8
LC_CTYPE="en_US.iso8859"
LC_NUMERIC="en_US.iso8859"
LC_TIME="en_US.iso8859"
LC_COLLATE="en_US.iso8859"
LC_MONETARY="en_US.iso8859"
LC_MESSAGES="en_US.iso8859"
LC_PAPER="en_US.iso8859"
LC_NAME="en_US.iso8859"
LC_ADDRESS="en_US.iso8859"
LC_TELEPHONE="en_US.iso8859"
LC_MEASUREMENT="en_US.iso8859"
LC_IDENTIFICATION="en_US.iso8859"
LC_ALL=en_US.iso8859

[sko@OGC ~]$ 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
en_US
en_US.iso88591
en_US.utf8

This is the relevent part I have in my /etc/rc.conf file:

LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="America/Chicago"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

This is all I have in my /etc/locale.gen file, and I have run locale-gen afterwards:

en_US.UTF-8 UTF-8  
en_US ISO-8859-1

Any ideas are very helpful!

Last edited by Skofo (2008-09-14 13:55:17)

Offline

#2 2008-09-14 05:29:21

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: [solved]Locale problems =(

Have you ensured that you have no local settings in your .bash_profile or .bashrc? Someone had a similar problem in here from that not too long ago.

Offline

#3 2008-09-14 08:41:22

robertp
Member
From: Warszawa, Poland
Registered: 2007-09-11
Posts: 123

Re: [solved]Locale problems =(

First, decide whether you want to use ISO8859-2 or UTF-8 encoding. I recomend former.
Then change LOCALE variable in /etc/rc.conf to en_US if you use ISO-8859-2. For UTF-8 no change is needed.
And remove or comment any lines in .bashrc and .profile setting variables LANG, LC_*.

Offline

#4 2008-09-14 11:50:54

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [solved]Locale problems =(

Try `export LC_ALL=en_US.utf8` and then run `locale` again in the same terminal. If that solves it, then a reboot should solve it for the whole system.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2008-09-14 13:55:02

Skofo
Member
Registered: 2008-08-21
Posts: 36

Re: [solved]Locale problems =(

Everything you guys said fixed it. big_smile
Thanks so much!

Offline

Board footer

Powered by FluxBB