View previous topic :: View next topic |
Author |
Message |
keba Guru
Joined: 02 Jun 2006 Posts: 328 Location: Switzerland
|
Posted: Fri Oct 10, 2008 8:38 am Post subject: missing locale |
|
|
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 |
|
|
Paapaa l33t
Joined: 14 Aug 2005 Posts: 955 Location: Finland
|
Posted: Fri Oct 10, 2008 9:41 am Post subject: |
|
|
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 |
|
|
keba Guru
Joined: 02 Jun 2006 Posts: 328 Location: Switzerland
|
Posted: Fri Oct 10, 2008 11:52 am Post subject: |
|
|
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 |
|
|
Paapaa l33t
Joined: 14 Aug 2005 Posts: 955 Location: Finland
|
Posted: Fri Oct 10, 2008 12:22 pm Post subject: |
|
|
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 |
|
|
|