[Bug 1204182] [NEW] Locale wrongly defaults to en_US.UTF8

Graeme Hewson ghewson at wormhole.me.uk
Tue Jul 23 16:57:27 UTC 2013


Public bug reported:

Country/Region & Language setting is very keen to write
~/.kde/env/setlocale.sh with the contents:

export LANG=en_US.UTF-8
export LANGUAGE=en_US:en

even when the Country is not United States of America.

To reproduce:

1. In Country/Region & Language setting, Country is United Kingdom (in
my case). Also note that ~/.kde/env/setlocale.sh doesn't exist.

2. Make some change (I changed Short date format from DD/MM/YY to YYYY-
MM-DD) and click Apply.

3. Note that setlocale.sh has been written as above, with en_US values.

This means that when KDE is restarted, all LC_* variables are
en_US.UTF-8 instead of the previous values of en_GB.UTF-8.

One workaround is to delete ~/.kde/env/setlocale.sh after making the
required changes in System Settings.

Another workaround is to set the Preferred Language as well as making
the other required change (Preferred Languages was previously empty on
my system). Setting this to British English causes
~/.kde/env/setlocale.sh to be written with the contents:

export LANG=en_GB.UTF-8
export LANGUAGE=en_GB:en

Now there's an extreme demonstration of the problem. With Country set to
United Kingdom, clicking Defaults subtly changes the Country to System
Country (United Kingdom). Clicking Apply then changes the contents of
setlocale.sh from the en_GB values to en_US values, even though other
settings (Money, etc.) are appropriate for the UK.

Expected behaviour:

~/.kde/env/setlocale.sh should not be written if it doesn't exist and it's not
necessary to write it (LC_* variables are set elsewhere).

Originally reported to KDE at
https://bugs.kde.org/show_bug.cgi?id=322688. KDE developer says file
isn't written by KDE, so must be due to distribution-specific patch.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: systemsettings 4:4.10.5-0ubuntu0.1
ProcVersionSignature: Ubuntu 3.8.0-26.38-generic 3.8.13.2
Uname: Linux 3.8.0-26-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9.2-0ubuntu8.1
Architecture: amd64
Date: Tue Jul 23 17:47:07 2013
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/systemsettings
InstallationDate: Installed on 2012-01-02 (568 days ago)
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MarkForUpload: True
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: kde-workspace
UpgradeStatus: Upgraded to raring on 2013-04-27 (87 days ago)

** Affects: kdebase-workspace
     Importance: Unknown
         Status: Unknown

** Affects: kde-workspace (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug kubuntu raring third-party-packages

** Bug watch added: KDE Bug Tracking System #322688
   https://bugs.kde.org/show_bug.cgi?id=322688

** Also affects: kdebase-workspace via
   https://bugs.kde.org/show_bug.cgi?id=322688
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kde-workspace in Ubuntu.
https://bugs.launchpad.net/bugs/1204182

Title:
  Locale wrongly defaults to en_US.UTF8

To manage notifications about this bug go to:
https://bugs.launchpad.net/kdebase-workspace/+bug/1204182/+subscriptions




More information about the kubuntu-bugs mailing list