Bug 45345 - Konsole doesn't use locale settings when started through KDM
Summary: Konsole doesn't use locale settings when started through KDM
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.1.2
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-16 23:18 UTC by arkmch
Modified: 2012-09-07 21:35 UTC (History)
1 user (show)

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 arkmch 2002-07-16 23:06:22 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           konsole
Version:           1.1.2 (using KDE 3.0.2 )
Severity:          normal
Installed from:    Gentoo
Compiler:          gcc version 2.95.3 20010315 (release)
OS:                Linux (i686) release 2.4.18
OS/Compiler notes: 

The language and country in Control Center are both set to Polish. All the applications show characters from the iso8859-2 set correctly except konsole where instead of diacritics I see question marks. 

This problem only occurs when KDE is started through KDM and not startx. 

I noticed that adding "source /etc/profile" to  /etc/X11/Sessions/kde-3.0.2  solves the problem. I think this is due to the fact that in /etc/profile I set LC_ALL and LANG viariables.

I suggests that konsole should use the country settings from Control Center (preferably) or the locale settings in /etc/profile




(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 Stephan Binner 2002-08-26 20:09:44 UTC
Sounds like your console (read non-KDE not using KDE control center settings) 
applications doesn't see correct LC_ALL and LANG. No fixable bug in Konsole.
Comment 2 Stephan Binner 2002-08-27 11:40:10 UTC
----------  Forwarded Message  ----------

Subject: Re: Bug#45345 acknowledged by developer (Konsole doesn't use locale 
settings when started through KDM)
Date: Tue 27 Aug 2002 02:18:39 +0200
From: Arkadiusz Mucha <arkmch@priv4.onet.pl>
To: Stephan Binner <binner@kde.org>

You wrote:
> Sounds like your console (read non-KDE not using KDE control center
> settings) applications doesn't see correct LC_ALL and LANG. No fixable bug
> in Konsole.

LC_ALL and LANG *are* set correctly as confirmed by the output of "echo
$LC_ALL" and "echo $LANG" commands within konsole-the-KDE-apllication. It is
not a matter of a shell not getting the correct variables from its
intialisation files. It is a problem of a KDE aplication ignoring language
settings from the control center.

-------------------------------------------------------
Comment 3 arkmch 2002-12-07 01:41:47 UTC
Also, the problem does not occur in xterm so the applications do see the
correnct locale variables. 

In Konsole-the-KDE-application the messages are in Polish, the date format is
localised, etc, and the only thing missing is the ability to display iso-8859-2
characters by konsole.
Comment 4 arkmch 2003-11-18 22:00:55 UTC
The bug is no longer reproducible on gentoo. I can't tell if it is due to a change in gentoo-specific startup scripts or KDE code. 

Whatever the reason, it's time to close this bug.
Comment 5 latebeat 2012-09-07 15:16:04 UTC
Ok I can attest that this error still exists. Kdm does not obey /etc/environment nor /etc/default/locale.

In both files I've set the locale (LANG and LANGUAGE) correctly but in the kde session the konsole is still in posix. However I found this bug to exist for all kde applications not just console.
When switched from kdm to lightdm, everything is working as it should. The kde session (and konsole) pick up the locale from /etc/default/locale (in my case el_GR.utf8)
Comment 6 Jekyll Wu 2012-09-07 18:38:14 UTC
(In reply to comment #5)
> Ok I can attest that this error still exists. Kdm does not obey
> /etc/environment nor /etc/default/locale.

@latebeat

Then it is better to open a new report against kdm and add this report as a reference in your new report.  This report was closed long time ago. It does not make much sense to "reuse" this report.
Comment 7 latebeat 2012-09-07 19:49:16 UTC
Hi Jekyll, 
this is my first time reporting a bug. Where do I go to open a new one? I see only how to add comments but not to open a new one.
I'm new to this :/
Comment 8 Jekyll Wu 2012-09-07 21:35:11 UTC
(In reply to comment #7)
> Hi Jekyll, 
> this is my first time reporting a bug. Where do I go to open a new one? I
> see only how to add comments but not to open a new one.
> I'm new to this :/

Just go to https://bugs.kde.org/enter_bug.cgi?format=guided and choose "kdm".