Bug 342288

Summary: LANGUAGE is set incorrectly in ~/.kde/env/setlocale.sh
Product: [Applications] systemsettings Reporter: Leon Maurer <leon.maurer>
Component: kcm_languageAssignee: John Layt <jlayt>
Status: RESOLVED DOWNSTREAM    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

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.