View previous topic :: View next topic |
Author |
Message |
StyleWarz n00b
Joined: 12 Apr 2004 Posts: 1
|
Posted: Mon Apr 12, 2004 2:13 pm Post subject: Problem with Locales |
|
|
Hi there,
i got a problem with my locales, and though with postgresql.
at first an ouput of `locale`
this seems to work
root@godmode root # locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
after `export LANG="de_DE@euro` or `export LANG="de_DE"`
root@godmode root # 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=de_DE@euro
LC_CTYPE="de_DE@euro"
LC_NUMERIC="de_DE@euro"
LC_TIME="de_DE@euro"
LC_COLLATE="de_DE@euro"
LC_MONETARY="de_DE@euro"
LC_MESSAGES="de_DE@euro"
LC_PAPER="de_DE@euro"
LC_NAME="de_DE@euro"
LC_ADDRESS="de_DE@euro"
LC_TELEPHONE="de_DE@euro"
LC_MEASUREMENT="de_DE@euro"
LC_IDENTIFICATION="de_DE@euro"
LC_ALL=
so how can i fix this? i didn't find anything on google, on #gentoo on IRCnet and FreeNode. thanks |
|
Back to top |
|
|
Jayz n00b
Joined: 07 Mar 2004 Posts: 29 Location: canada
|
Posted: Mon Apr 12, 2004 3:53 pm Post subject: |
|
|
just set LC_ALL will change all locale to a specific one |
|
Back to top |
|
|
Will Scarlet Apprentice
Joined: 19 Mar 2004 Posts: 239
|
Posted: Mon Apr 12, 2004 3:55 pm Post subject: |
|
|
Check the output of "locale -a" and look for your setting. If it is not listed, that would be the reason for the error comming up.
After some checking, I found that the locale command belongs to glibc.
My thinking, and I might be wrong on this one (someone correct me please), that if it is not listed with locale -a command, you may of not included the USE flag of nls in your /etc/make.conf. More specifically, with the build of glibc.
You can check what USE flags glibc was built with using the following command:
etcat -u glibc
If you don't have the etcat command, emerge gentoolkit. etcat is a very useful command. |
|
Back to top |
|
|
|