Bug 448323

Summary: Plasma sets LANG=C.UTF-8 while signing in
Product: [Plasma] plasmashell Reporter: Michael Tsang <miklcct>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED FIXED    
Severity: normal CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.24
Sentry Crash Report:

Description Michael Tsang 2022-01-12 14:40:18 UTC
SUMMARY
When I signs in to Plasma session from SDDM, it sets LANG=C.UTF-8 but not honouring the default locale settings.


STEPS TO REPRODUCE
1. Set the default system locale to follow:

LANG=yue_HK.UTF-8
LANGUAGE="yue_HK:zh_HK:zh_TW:zh_CN:zh"
LC_MONETARY=en_GB.UTF-8

2. Sign in Plasma session from SDDM

OBSERVED RESULT
locale outputs C.UTF-8 except LC_MONETARY and LANGUAGE

EXPECTED RESULT
locale output yue_HK.UTF-8 instead


Linux/KDE Plasma: Ubuntu 21.10
(available in About System)
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-01-13 03:23:12 UTC
This should be fixed in Plasma 5.24. Please re-open if you find that it's not fixed yet after you upgrade to Plasma 5.24 and reboot.