SUMMARY *** The Region and Language KCM has a strange heuristic for mapping Plasma language to GLibc locale in the KCMRegionAndLang::constructGlibcLocaleMap(). This algorithm can select almost unused locale variant instead of expected one. For example, it selects a be_BY@latin locale for Belarusian language instead of pure be_BY. *** STEPS TO REPRODUCE 1. Run Region and Language KCM 2. Select a Belarusian ("беларуская") language 3. Apply changes 4. Check the ~/.config/plasma-localerc for LANG variable OBSERVED RESULT LANG=be_BY.UTF-8@latin EXPECTED RESULT LANG=be_BY.UTF-8 SOFTWARE/OS VERSIONS Linux/KDE Plasma: Operating System: Debian GNU/Linux 12 KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 Kernel Version: 6.1.0-9-amd64 (64-bit) Graphics Platform: X11
Can confirm, we should have a better heuristic in this case. Thanks for pointing out the specific function that's the issue too!