Bug 342288 - LANGUAGE is set incorrectly in ~/.kde/env/setlocale.sh
Summary: LANGUAGE is set incorrectly in ~/.kde/env/setlocale.sh
Status: RESOLVED DOWNSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_language (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: John Layt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-28 19:28 UTC by Leon Maurer
Modified: 2015-01-08 01:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leon Maurer 2014-12-28 19:28:20 UTC
I was playing around with the prefered languages setting, and I briefly put Russian in the list along with American English. However, even when I removed Russian, Russian still showed up all over the place. I found that the LANGUAGE environment variable was set to "en:ru:en" (which sometimes overrode the fact that LANG was correctly set to "en_US.UTF-8"). After much searching, I found that LANGUAGE was being set to "en:ru:en"  in ~/.kde/env/setlocale.sh:

$ cat ~/.kde/env/setlocale.sh
export LANGUAGE=en:ru:en
export LANG=en_US.UTF-8
export LC_NUMERIC=en_US.UTF-8
export LC_TIME=en_US.UTF-8
export LC_MONETARY=en_US.UTF-8
export LC_PAPER=en_US.UTF-8
export LC_IDENTIFICATION=en_US.UTF-8
export LC_NAME=en_US.UTF-8
export LC_ADDRESS=en_US.UTF-8
export LC_TELEPHONE=en_US.UTF-8
export LC_MEASUREMENT=en_US.UTF-8

So, LANG is being set correctly, but LANGUAGE is not.

Reproducible: Didn't try




This was using System Settings version 4.11.12 under KDE version 4.14.1.
Comment 1 Christoph Feck 2015-01-08 01:23:59 UTC
setlocale.sh is written by a distribution-specific patch. Please report this issue directly to the bug tracker of your distribution.