You are not logged in.
Pages: 1
Hello
I'm trying to fix a behaviour that bothers me for some time now.
I'm running my system with the following in my rc.conf
LOCALE="en_US.UTF-8"
I now want to have some things in another locale, like the displaying of date and time, or measurements. Also my number block on the keyboard does not fully work at the time. With the calculator I cannot use the comma. In the input field of the calculator, the expected sign is a dot, whereas on my block I enter a comma. So I guess I need to change the expected sign to a comma. This is related to the locale settings, I think.
The locale for time, measurement, monetary and numeric stuff I'd like to set to "de_AT.utf8".
I got this locale generated via:
# locale-gen
Generating locales...
de_AT.UTF-8... done
en_US.UTF-8... done
en_US.ISO-8859-1... done
Generation complete.
Then I added the following lines to my .bashrc
export LC_TIME="de_AT.utf8"
export LC_NUMERIC="de_AT.utf8"
export LC_MONETARY="de_AT.utf8"
export LC_MEASUREMENT="de_AT.utf8"
On "source .bashrc" I get:
bash: warning: setlocale: LC_TIME: cannot change locale (de_AT.utf8)
bash: warning: setlocale: LC_NUMERIC: cannot change locale (de_AT.utf8)
"locale" outputs:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=de_AT.utf8
LC_TIME=de_AT.utf8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=de_AT.utf8
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=de_AT.utf8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
There's no change in behaviour. The time displayed by gnome is still the same and the thing with the calculator remains.
Maybe it's not the correct way I'm trying to do it.
Any hints?
Last edited by fourreux (2011-04-05 12:00:47)
Offline
Remove the ".utf8" in your export statements and try it.
export LC_TIME="de_AT"
export LC_NUMERIC="de_AT"
export LC_MONETARY="de_AT"
export LC_MEASUREMENT="de_AT"
Solution was used here: https://bbs.archlinux.org/viewtopic.php?pid=20361
Another possibility is to make ".utf8" uppercase; try "de_AT.UTF8".
Did you log out and back in again?
Last edited by thisoldman (2011-04-05 11:01:58)
Offline
Thanx!
I edited it the way you suggested. Without ".utf8" now in my .bashrc.
So, the number block works now (after a reboot though - maybe logging in and out would have been enough, resp. restarting X)
The time and date in gnome is still the same. But that, for the moment, doesn't bother at all.
What about LC_TIME and LC_NUMERIC, though? It still complains about them ... Then again, I just removed them from .bashrc and am fine, for the time being.
Thanx, again!
Offline
Hi fourreux,
I export all the specifics in /etc/profile:
export LC_TIME="hu_HU.UTF-8"
etc.
And in rc.conf I also have the same English locale like you have, since I want my system's language English.
Offline
If I recall right, you usually cannot easily mix "UTF-8" and "utf8" locales. This means you have to be cosistent whith what was set up in your rc.conf.
Does it help if you change your ~/.bashrc definitions from "xxx.utf8" to "xxx.UTF-8"?
To know or not to know ...
... the questions remain forever.
Offline
Ahhhhhhhhhh!!!!
Now that does the trick! UTF-8!
Many thanx to everyone!!
Offline
Pages: 1