! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Wrong locale set with lightdm
Status:
RESOLVED: FIXED
Product:
Xfce4-session
Component:
General

Comments

Description Urmas 2019-05-19 07:12:39 CEST
After compiling the latest xfce4-session 4.13.2, the locale stopped being set properly.

LC_CTYPE, LC_COLLATE, and LC_MESSAGES are set to the language code selected in lightdm, "ru", which is not a valid locale name, "ru_RU.UTF-8"

It worked properly in 4.12.1.
Comment 1 Theo Linkspfeifer editbugs 2019-05-19 11:34:02 CEST
It appears that some component is setting GDM_LANG, and xfce4-session has some very old code for handling that env var.

https://git.xfce.org/xfce/xfce4-session/tree/xfce4-session/main.c#n111
Comment 2 Theo Linkspfeifer editbugs 2019-05-19 13:09:02 CEST
The xfce4-session package from Ubuntu removes the linked code block (xubuntu_ignore-gdm-lang.patch). Therefore, the same thing does happen with 4.12.1 when manually compiled.
Comment 3 Git Bot editbugs 2020-05-08 11:02:20 CEST
Lionel Le Folgoc referenced this bugreport in commit b681969f9094480a1f1092d4dbe1e2c5c336b63f

Drop GDM compatibility code otherwise the session locale might be set to an invalid value.

https://gitlab.xfce.org/xfce/xfce4-session/commit/b681969f9094480a1f1092d4dbe1e2c5c336b63f

Bug #15414

Reported by:
Urmas
Reported on: 2019-05-19
Last modified on: 2020-05-09

People

Assignee:
Xfce Bug Triage
CC List:
1 user

Version

Version:
4.13.2

Attachments

Additional information