Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
missing locale
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 328
Location: Switzerland

PostPosted: Fri Oct 10, 2008 8:38 am    Post subject: missing locale Reply with quote

Hi,

I have got a problem: I updated glibc and forgot to configure /etc/locale.gen, so I got too many locales (around 400). I used localepurge to delete them. I regenerated the locales I needed (fr_CH and de_CH) using locale-gen after having updated /etc/locale.gen and I have set LC_ALL="fr_CH.UTF8" in 02locale but it doesn't work (everything stays english). I really don't know what went wrong.
It says in the guide that locales are part of the system libraries, so do I have to re-emerge some libraries to get my locales back? thanks
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Fri Oct 10, 2008 9:41 am    Post subject: Reply with quote

What does "locale" and "locale -a" give? After editing 02locale, did you issue "env-update" and "source /etc/profile"?
_________________
Paludis, the way packages are meant to be managed.
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 328
Location: Switzerland

PostPosted: Fri Oct 10, 2008 11:52 am    Post subject: Reply with quote

Yes I did issue env-update etc. locale and locale -a give correct values:
locale:
Code:

LANG=fr_CH.utf8
LC_CTYPE="fr_CH.utf8"
...
LC_ALL=fr_CH.utf8


locale -a
Code:

C
POSIX
de_CH
de_CH.iso88591
de_CH.utf8
en_US
en_US.iso88591
en_US.utf8
fr_CH
fr_CH.iso88591
fr_CH.utf8

_________________
Prayer can change the world!
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Fri Oct 10, 2008 12:22 pm    Post subject: Reply with quote

keba wrote:

Code:

LANG=fr_CH.utf8
...


Edit your 02locale file and try to use this format:

Code:
LANG="fr_CH.UTF-8"
...


At least this is the format in docs and works for me. And for some reason "locale -a" shows different format than the one in official UTF-8 doc.

EDIT: Actually, this doesn't seem to matter. Both formats worked for me. Hmm. I'd next try creating the locale again double checking the format:

Code:
localedef -i fr_CH -f UTF-8 fr_CH.UTF-8

_________________
Paludis, the way packages are meant to be managed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum