You are not logged in.

#1 2018-01-02 07:16:41

Sadface
Member
From: Germany
Registered: 2009-12-09
Posts: 47

[Possible bug] filesystem-2017.12 ignores /etc/locale.conf

I am not sure if this is a bug or just a fact of being on [testing], so I am posting this here first rather than immediately filing a bug.

Yesterday after running Syu, I noticed my system locale being set to "C" after reboot, naturally completely breaking UTF-8 support. I haven't touched my /etc/locale.conf (still set to LANG=de_DE.utf8) and if I set LANG manually or use ~/.config/locale.conf, everything works as usual. On further inspection, it turns out that filesystem-2017.12-2 introduced a change in /etc/profile.d/locale.sh, compared to 2017-10-2:

+# load locale.conf in XDG paths.
+# /etc/locale.conf loads and overrides by kernel command line is done by systemd
 if [ -z "$LANG" ]; then
   if [ -n "$XDG_CONFIG_HOME" ] && [ -r "$XDG_CONFIG_HOME/locale.conf" ]; then
     . "$XDG_CONFIG_HOME/locale.conf"
   elif [ -n "$HOME" ] && [ -r "$HOME/.config/locale.conf" ]; then
     . "$HOME/.config/locale.conf"
-  elif [ -r /etc/locale.conf ]; then
-    . /etc/locale.conf
   fi
 fi

The comment states that systemd should fill this role, but on my system it just falls back to C locale using systemd 236.0-2.

Offline

#2 2018-01-02 08:04:37

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Possible bug] filesystem-2017.12 ignores /etc/locale.conf


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB