en is ignored as first value in LANGUAGE

Bug #1247802 reported by Gabor Vas
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
eglibc (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

i use 13.10 kubuntu on a Desktop machine. I added 4 languages to System settings>Locale (in order: British English, American English, Portuguese, French, Hungarian) and terminal applications and output language changed to Portuguese, I cannot really set it back).
Super annoying.
kde-workspace:
  Instalado: 4:4.11.2-0ubuntu1
  Candidato: 4:4.11.2-0ubuntu1
  Tabela de Versão:
 *** 4:4.11.2-0ubuntu1 0
        500 http://hu.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages
        100 /var/lib/dpkg/status

env | grep LANG
LANG=en_GB.UTF-8
GDM_LANG=en_US
LANGUAGE=en_GB:en_US:pt:fr:hu:en

env | grep LC
LC_PAPER=hu_HU.UTF-8
LC_ADDRESS=hu_HU.UTF-8
LC_MONETARY=hu_HU.UTF-8
LC_NUMERIC=hu_HU.UTF-8
LC_TELEPHONE=hu_HU.UTF-8
LC_IDENTIFICATION=hu_HU.UTF-8
LC_MEASUREMENT=hu_HU.UTF-8
LC_TIME=hu_HU.UTF-8
LC_NAME=hu_HU.UTF-8

summary: - adding langues to locale changes terminal output language
+ language KCM sets incorrect LANGUAGE
affects: kde-workspace (Ubuntu) → kde-runtime (Ubuntu)
Changed in kde-runtime (Ubuntu):
assignee: nobody → Harald Sitter (apachelogger)
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Gabor Vas (cognac-gamma) wrote : Re: language KCM sets incorrect LANGUAGE

As it was really annoying I removed all added languages and Konsole output language changed back only after shut down but not reboot.

Revision history for this message
Harald Sitter (apachelogger) wrote :

Fixed for 14.04

env |grep LANG; env |grep LC
LANGUAGE=en:pt:fr:hu:en
GDM_LANG=en_US
LANG=en_GB.UTF-8
LC_PAPER=en_GB.UTF-8
LC_MONETARY=en_GB.UTF-8
LC_TELEPHONE=en_GB.UTF-8
LC_NAME=en_GB.UTF-8
LC_NUMERIC=en_GB.UTF-8
LC_MEASUREMENT=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
LC_IDENTIFICATION=en_GB.UTF-8
LC_ADDRESS=en_GB.UTF-8
LC_CTYPE=en_US.UTF-8

Changed in kde-runtime (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Harald Sitter (apachelogger) wrote :

So, as it turns out eglibc is simply broken.

LANGUAGE=en:foo will almost always use foo. Also very intersting is that if you put a conditional breakpoint on __GI_getenv it wills suddenly start to use english instead of foo.

affects: kde-runtime (Ubuntu) → eglibc (Ubuntu)
Changed in eglibc (Ubuntu):
assignee: Harald Sitter (apachelogger) → nobody
importance: Low → Medium
status: Fix Released → Confirmed
summary: - language KCM sets incorrect LANGUAGE
+ en is ignored as first value in LANGUAGE
Revision history for this message
Arthur Schiwon (blizzz) wrote :

any en is ignored, i.e. en:en:pt won't work either and neither does en:en:xf:en:pt:en (not existing xf is correctly ignored)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.