You are not logged in.

#1 2014-11-30 22:30:00

justasug
Member
Registered: 2014-08-03
Posts: 174

[SOLVED] Conflicting locale information; Openbox

EDIT: Seems like exporting locale variables in Openbox's environment config file fixes this. I still don't know why some of the variables were inherited or from where they were inherited.

I noticed that my locale settings don't match the settings inside the locale.conf file. This is the output I get when I type in "locale":

LANG=en_US.utf8
LC_CTYPE=bs_BA.UTF-8
LC_NUMERIC=bs_BA.UTF-8
LC_TIME=bs_BA.UTF-8
LC_COLLATE=bs_BA.UTF-8
LC_MONETARY=bs_BA.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

From LC_PAPER on it seems to switch to en_US for no apparent reason. Those lines are also written inside quotes and I read that items which aren't explicitly set do that. However, I did set those items inside my locale.conf file. Here's the locale.conf file:

LANG=en_US.UTF-8
LC_CTYPE=bs_BA.UTF-8
LC_NUMERIC=bs_BA.UTF-8
LC_TIME=bs_BA.UTF-8
LC_COLLATE=bs_BA.UTF-8
LC_MONETARY=bs_BA.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=bs_BA.UTF-8
LC_NAME=bs_BA.UTF-8
LC_ADDRESS=bs_BA.UTF-8
LC_TELEPHONE=bs_BA.UTF-8
LC_MEASUREMENT=bs_BA.UTF-8
LC_IDENTIFICATION=bs_BA.UTF-8

localectl status:

System Locale: LANG=en_US.UTF-8
                  LC_CTYPE=bs_BA.UTF-8
                  LC_NUMERIC=bs_BA.UTF-8
                  LC_TIME=bs_BA.UTF-8
                  LC_COLLATE=bs_BA.UTF-8
                  LC_MONETARY=bs_BA.UTF-8
                  LC_PAPER=bs_BA.UTF-8
                  LC_NAME=bs_BA.UTF-8
                  LC_ADDRESS=bs_BA.UTF-8
                  LC_TELEPHONE=bs_BA.UTF-8
                  LC_MEASUREMENT=bs_BA.UTF-8
                  LC_IDENTIFICATION=bs_BA.UTF-8
       VC Keymap: n/a
      X11 Layout: ba,us
       X11 Model: pc104
     X11 Variant: ,
     X11 Options: grp:alt_shift_toggle

Strangely, when I do "localectl status", it shows the right settings, but without the LC_MESSAGES line. Should I disregard the output of "locale" and just trust what "localectl status" says? I checked for locale.conf files inside my home folder and there aren't any. It's sourcing it from the /etc/locale.conf file. Does anyone know what else could be causing the forced and unwanted settings?

Last edited by justasug (2015-02-04 17:13:56)

Offline

Board footer

Powered by FluxBB