You are not logged in.

#1 2010-10-10 05:48:32

duke11235
Member
Registered: 2009-10-09
Posts: 221

[SOLVED]Locale Problem

Basically everything I open, from mplayer, to gtk apps, to gcc, to makepkg all say the locale was invalid. I set locale=en_Us.UTF-8 in rc.conf. Am I missing something?

Last edited by duke11235 (2010-11-09 05:17:47)

Offline

#2 2010-10-10 08:21:58

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 750

Re: [SOLVED]Locale Problem

As allways, wiki is your best friend.
http://wiki.archlinux.org/index.php/Locale

Unless you've misstyped, that should be "en_US.UTF-8".

Other than that, you can allways check locale names by reading /etc/locale.gen .

Have you actually created needed locale?

Offline

#3 2010-10-10 11:55:42

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

Re: [SOLVED]Locale Problem

paste the output of 'locale' and 'locale -a'


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

Offline

#4 2010-10-10 17:21:56

duke11235
Member
Registered: 2009-10-09
Posts: 221

Re: [SOLVED]Locale Problem

locale

locale: Cannot set LC_CTYPE 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=ja_JP.utf8
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=

locale -a

locale: Cannot set LC_CTYPE to default locale; No such file or directory
C
en_US
en_US.iso88591
en_US.utf8
POSIX

So where do I change these invalid locales?

Offline

#5 2010-10-10 17:29:03

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

Re: [SOLVED]Locale Problem

grep $HOME and /etc for "ja_JP.utf8"

Or if you want to use it, build the ja_JP.utf8 locale (edit /etc/locale.gen and run locale-gen)

Last edited by Mr.Elendig (2010-10-10 17:29:41)


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

Offline

#6 2010-10-10 18:00:29

duke11235
Member
Registered: 2009-10-09
Posts: 221

Re: [SOLVED]Locale Problem

grep ja_JP.utf8 /etc and grep ja_JP.utf8 $HOME returned no results.Is ja_JP.utf8 japanese? If so I don't want to use that. I have still been unable to find where these can be edited. Also, where do I tell it to use the standard C locale?

Last edited by duke11235 (2010-10-10 18:00:53)

Offline

#7 2010-10-10 18:44:19

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [SOLVED]Locale Problem

You first have to uncomment the locales you need in /etc/locale.gen and generate them with /usr/sbin/locale-gen. Then you can use them. You can see a list of available locales with locale -a

Last edited by olive (2010-10-10 18:45:05)

Offline

#8 2010-10-10 20:27:23

duke11235
Member
Registered: 2009-10-09
Posts: 221

Re: [SOLVED]Locale Problem

I don't want to use that locale. I want to permanently set it to en_US.UTF-8

Offline

#9 2010-11-04 20:26:45

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [SOLVED]Locale Problem

duke11235 wrote:

I don't want to use that locale. I want to permanently set it to en_US.UTF-8

Have you read my post?

Type locale -a , to see what locale you have. If your locale doesn't appears uncomment your locale in /etc/locale.gen and run (as root) locale-gen. Then edit /etc/rc.conf and edit the line:

LOCALE="en_US.utf8"

Reboot and type locale to see if it is correctly enabled. If you have still problem repost explaining what happens when you try to do what I have described.

P.S. Your locale is "en_US.utf8" (and not en_US.UTF-8[)

Olive

Offline

#10 2010-11-09 05:17:29

duke11235
Member
Registered: 2009-10-09
Posts: 221

Re: [SOLVED]Locale Problem

Yes, I saw your post, The problem was my autostart.sh, which was exporting that locale to japanese(or whatever). Removing that line solved the problem

Offline

Board footer

Powered by FluxBB