You are not logged in.
Pages: 1
Hi,
ever since the latest changes to rc.conf I'm not able to set my locale anymore. I try to use the new rc.conf and therefore setting my locale in /etc/locale.conf but no matter what I set there, it is not applied.
Here is the relevant part of my locale.gen:
de_AT.UTF-8 UTF-8
de_AT ISO-8859-1
...
en_US.UTF-8 UTF-8
en_US ISO-8859-1Output of locale-gen
$ sudo locale-gen
Generating locales...
de_AT.UTF-8... done
de_AT.ISO-8859-1... done
en_US.UTF-8... done
en_US.ISO-8859-1... done
Generation complete.My locale.conf
LANG="de_AT.UTF-8"
LC_COLLATE="C"I tried it with and without the ", as the wiki uses them and the manpage doesn't.
So, and here is where the weird part begins:
$ locale -a
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
C
POSIX
de_AT
de_AT.iso88591
de_AT.utf8
en_US
en_US.iso88591
en_US.utf8and even more strange as I don't speak spanish and never set it as a locale:
$ 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=es_ES.utf8
LC_CTYPE="es_ES.utf8"
LC_NUMERIC=de_AT.utf8
LC_TIME=de_AT.utf8
LC_COLLATE=C
LC_MONETARY=de_AT.utf8
LC_MESSAGES="es_ES.utf8"
LC_PAPER="es_ES.utf8"
LC_NAME="es_ES.utf8"
LC_ADDRESS="es_ES.utf8"
LC_TELEPHONE="es_ES.utf8"
LC_MEASUREMENT=de_AT.utf8
LC_IDENTIFICATION="es_ES.utf8"
LC_ALL=What seems a bit odd to me is that /usr/lib/locale only has one file (locale-archive), but I don't really know how this folder should look like.
Any help would be appreciated.
Last edited by Aeos (2012-08-15 12:47:29)
Offline
What shell are you using? What happens if you go back to setting LOCALE in rc.conf?
Offline
May I ask what the expected behaviour is for a locale like de_AT which has very few translated messages available? I'm asking because I would like to set my default language to cy but I've been afraid to as I didn't know what effect that might have. (I'm not sure how to tell it to fall back to X i.e. how do you specify a preferred order of languages?)
EDIT: found it in the wiki page for locale. (I was sure I'd searched before but maybe I used the wrong term.)
Last edited by cfr (2012-08-12 00:48:32)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
What shell are you using?
Bash
What happens if you go back to setting LOCALE in rc.conf?
Nothing at all, locale has the same output as before. I just noticed however that GDM is in German, I'm not sure though if this is new (with rc.conf and locale.conf).
/edit: I'm not sure why, but suddenly some of my menues are in spanish.
Last edited by Aeos (2012-08-12 08:28:20)
Offline
Do you know if the problem is specific to de_AT? That is, suppose you set LANG to Italian or something, do you still get Spanish?
If you run e.g.
sh /etc/profile.d/locale.sh
localedo you get the same results?
Do you see the same results in a clean user account?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Do you know if the problem is specific to de_AT? That is, suppose you set LANG to Italian or something, do you still get Spanish?
If you run e.g.
sh /etc/profile.d/locale.sh localedo you get the same results?
No change with either suggestions.
Do you see the same results in a clean user account?
[gandalf@avallone ~]$ locale
LANG=de_AT.UTF-8
LC_CTYPE="de_AT.UTF-8"
LC_NUMERIC="de_AT.UTF-8"
LC_TIME="de_AT.UTF-8"
LC_COLLATE=C
LC_MONETARY="de_AT.UTF-8"
LC_MESSAGES="de_AT.UTF-8"
LC_PAPER="de_AT.UTF-8"
LC_NAME="de_AT.UTF-8"
LC_ADDRESS="de_AT.UTF-8"
LC_TELEPHONE="de_AT.UTF-8"
LC_MEASUREMENT="de_AT.UTF-8"
LC_IDENTIFICATION="de_AT.UTF-8"
LC_ALL=:-) Seems like there I broke something with my user account, any ideas?
Offline
I would start by checking any personalised config files in your home directory e.g. ~/.profile, ~/.bashrc ~/.bash_profile etc. grepping them for LC and LANG might be a good start - perhaps you've somehow managed to set something odd somehow.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
What if you set your locales exactly like this
LC_TIME=de_AT.UTF-8
Start with setting just the LC_TIME and remove the LC_ALL=
Offline
@drobole,
I don't see how that can be the problem if it works fine in a new user account - the contents of /etc/locale.conf can't be the problem, can they?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Sooo, seems like some little leprechauns crawled in my system and fixed it magically, as it works correctly now.
Yesterday my X froze right after login (it does this from time to time), so I switched to tty1 and started it manually, and surprisingly the locale was right now. Naturally I suspected a mistake somewhere in starting X and switched my ~/.xinitrc with the one from the new user account, which led to X not starting at all. Then I copied the old one back, rebooted and it's (magically) fine now.
I mark this thread as solved, though I really would like to know what was wrong.
Offline
Pages: 1