You are not logged in.

#1 2014-11-03 20:45:18

viktordick
Member
Registered: 2012-03-19
Posts: 16

[WORKAROUND] locales in awesome WM broken

Hi,
since a few days ago, my locales within awesome are broken. I usually have the locales set in /etc/locale.conf as:

LANG=de_DE.UTF-8
LC_TIME=en_DK.UTF-8
LC_MESSAGES=C
LC_NUMERIC=C

and if I log in to the virtual console (tty2) or gnome, these are also recognized. But if I log in to awesome (from gdm), calling 'locale' gives:

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_DK.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
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="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

In the beginning, this was even weirder -- most locales were set to "C", which prevented me from starting gnome-terminal. Somehow by playing around with /etc/locale.conf, I managed to fix this, but still most locales should be set to "de_DE.UTF-8", which they aren't. I do not have any locales set in other places like ~/.profile, ~/.pam_environment or /etc/environment (I guess this one isn't read in arch, just something I recalled from ubuntu).
Does anyone else have similar problems or an idea what I could try to fix this?
Any help is very appreciated.

Edit: just got the original problem again, where all locales except "LC_TIME" are set to "C" with the settings above. If I change them to

LANG=de_DE.UTF-8
LC_TIME=en_DK.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8

, I again get the result that most locales are set to en_US.UTF-8 instead of de_DE.UTF-8, but gnome-terminal is starting again.

Last edited by viktordick (2014-11-12 07:27:55)

Offline

#2 2014-11-04 13:17:00

\hbar
Member
Registered: 2014-03-15
Posts: 165

Re: [WORKAROUND] locales in awesome WM broken

What about ~/.config ? You could search your hard drive for files named "locale.conf" to make sure.

Offline

#3 2014-11-04 14:13:32

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [WORKAROUND] locales in awesome WM broken

There are a lot of people with locale problems lately. Just a check: Is this only in awesome, or do you get problems in other window managers as well? What happens when you start X via xinit/startx?

Also, please see this thread.

EDIT: I asked a question you already answered. Sorry.

Last edited by runical (2014-11-04 14:18:56)

Offline

#4 2014-11-06 12:39:27

viktordick
Member
Registered: 2012-03-19
Posts: 16

Re: [WORKAROUND] locales in awesome WM broken

Hi,
thanks for the replies so far.
There is no other locale.conf on my system and /etc/environment is empty except for a few comments.
Interestingly, if I set all possible variables in /etc/locale.conf, everything except LANG is set correctly, i.e.:

$ cat /etc/locale.conf 
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC=C
LC_TIME=en_DK.UTF-8
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES=C
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=
$ locale
LANG=C
LC_CTYPE=de_DE.UTF-8
LC_NUMERIC=C
LC_TIME=en_DK.UTF-8
LC_COLLATE=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES=C
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=

Since LANG is only the default if a specific locale is not set, this works as a workaround.

startx and xinit do not work because of some keyboard layout errors (I have a custom layout in /usr/share/X11/xkb/symbols/mydvorak and startx seems to look for ~/.config/xkb/mydvorak.xkb, which is not there -- it also seems to expect another format of the file, I cannot just copy the global file there).

Offline

Board footer

Powered by FluxBB