Bug 350328 - Wrong LANG is set when region in format's is set.
Summary: Wrong LANG is set when region in format's is set.
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_language (other bugs)
Version First Reported In: 5.3.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: John Layt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-17 19:03 UTC by Artur O.
Modified: 2016-05-26 09:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artur O. 2015-07-17 19:03:15 UTC
If preferred translation language is set on "American English", and then formats is set to Swedish KDE will write locale LANG to sv_SE.UTF-8 (language set in formats) instead the value actually set in translations.

Reproducible: Always

Steps to Reproduce:
1. Set one language a in Translations.
2. Set another language b in Formats.
3. Notice locale setting LANG from b instead of a.

Actual Results:  
Locale LANG is set by the language selected in b.

Expected Results:  
Locale LANG set by language selected in a (Translations).
Comment 1 Philip Muškovac 2015-10-20 09:43:57 UTC
Confirmed.

Additionally, LC_MESSAGES is unset which should also be set to the preferred locale.
Comment 2 Sebastian Kügler 2016-05-26 09:08:35 UTC
I think you're confusing LANG and LANGUAGE. The former is the fallback for all formats (LC_ variables), the latter describes the languages used for translations.

See also "man 7 locale".