Doesn't set up the locale properly

Bug #1423208 reported by Uqbar
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kubuntu-settings (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

In /etc/default/locale I have this line
LANG="en_US.UTF-8"
In ~/.bashrc I have this line:
export LC_COLLATE="C"
In the System Settings-->Locale-->Country/Region & Language I have the following:
Country: Italy
Languages: American English, Italian (in this order)
Numbers: "." for thousands and "," for decimals
Money: EURO
Calendar: Gregorian
Date and Time: HH:MM:SS
Other: Page size: A4; Measurement system: metric; Byte size: IEC units.

In a console (no X and thus no KDE) I have these variables set:
LANG='en_US.UTF-8'
LC_COLLATE='C'
all other locale related variables are unset. This is the expected behavior.

In Konsole (KDE) I have these variables:

LANG='en_IT.UTF-8'
LANGUAGE='en:it:en'
LC_NUMERIC='en_IT.UTF-8'
LC_COLLATE='C'
LC_TIME='en_IT.UTF-8'
LC_MONETARY='en_IT.UTF-8'
LC_PAPER='en_IT.UTF-8'
LC_NAME='en_IT.UTF-8'
LC_ADDRESS='en_IT.UTF-8'
LC_TELEPHONE='en_IT.UTF-8'
LC_MEASUREMENT='en_IT.UTF-8'
LC_IDENTIFICATION='en_IT.UTF-8'

which clearly show an improperly set up locale.
For example within Konsole terminal I cannot input accented vowels from the Italian keyboard.
While I can do it from the non-KDE console.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: kubuntu-settings-desktop 1:14.04ubuntu15.1
Uname: Linux 3.19.0-031900-lowlatency x86_64
ApportVersion: 2.14.1-0ubuntu3.7
Architecture: amd64
CurrentDesktop: KDE
Date: Wed Feb 18 15:17:04 2015
InstallationDate: Installed on 2015-01-12 (37 days ago)
InstallationMedia: Kubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
PackageArchitecture: all
SourcePackage: kubuntu-settings
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Uqbar (uqbar) wrote :
Revision history for this message
Uqbar (uqbar) wrote :

For example, when I start the PostgreSQL client I get this:

[enzo@Feynman ~] psql tmp1
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en:it:en",
        LC_ALL = (unset),
        LC_PAPER = "en_IT.UTF-8",
        LC_ADDRESS = "en_IT.UTF-8",
        LC_MONETARY = "en_IT.UTF-8",
        LC_NUMERIC = "en_IT.UTF-8",
        LC_TELEPHONE = "en_IT.UTF-8",
        LC_COLLATE = "C",
        LC_IDENTIFICATION = "en_IT.UTF-8",
        LC_MEASUREMENT = "en_IT.UTF-8",
        LC_TIME = "en_IT.UTF-8",
        LC_NAME = "en_IT.UTF-8",
        LANG = "en_IT.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Revision history for this message
Uqbar (uqbar) wrote :

The error happens in this file:

/home/enzo/.kde/env/setlocale.sh

That I presume gets created (the wrong way) whenever I change the KDE locale settings.

That file contains currently these lines:

export LANG=en_IT.UTF-8
export LANGUAGE=en:it:en
export LC_NUMERIC=en_IT.UTF-8
export LC_TIME=en_IT.UTF-8
export LC_MONETARY=en_IT.UTF-8
export LC_PAPER=en_IT.UTF-8
export LC_IDENTIFICATION=en_IT.UTF-8
export LC_NAME=en_IT.UTF-8
export LC_ADDRESS=en_IT.UTF-8
export LC_TELEPHONE=en_IT.UTF-8
export LC_MEASUREMENT=it_IT.UTF-8

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kubuntu-settings (Ubuntu):
status: New → Confirmed
Revision history for this message
Konstantinos Filios (konfilios) wrote :

I have the exact same problem with accents in vowels when I use the following "custom" locale: en_GR.UTF-8 . If I use el_GR.UTF-8 (greek language, country Greece) everything is ok. But if I switch to "en" language (because I find the UI easier in english language), then I lose accented vowels (i.e. in libreoffice)

Revision history for this message
Chris Guiver (guiverc) wrote :

Thank you for reporting this bug to Ubuntu.

Ubuntu 14.04 (trusty) reached end-of-standard-support on April 25, 2019.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in.

Changed in kubuntu-settings (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for kubuntu-settings (Ubuntu) because there has been no activity for 60 days.]

Changed in kubuntu-settings (Ubuntu):
status: Incomplete → Expired
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.