Bug 112774 - kdm does not know that we live in utf-8
Summary: kdm does not know that we live in utf-8
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: KDE (show other bugs)
Version: Beta 3
Hardware: Other All
: P5 - None : Critical
Target Milestone: ---
Assignee: Stephan Kulow
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-24 17:20 UTC by Juergen Weigert
Modified: 2005-09-12 10:31 UTC (History)
2 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
fixed version of /etc/init.d/xdm (4.09 KB, text/plain)
2005-08-24 17:33 UTC, Juergen Weigert
Details
/etc/init.d/xdm (4.14 KB, text/plain)
2005-08-25 08:51 UTC, Dr. Werner Fink
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Weigert 2005-08-24 17:20:19 UTC
If keyboard is german, typing umlaut characters produces non-printable 
two-byte characters in kdm. 
 
this is a bug in /etc/init.d/xdm, where the language is not initialized 
properly. Adding 
test -e /etc/profile.d/lang.sh  && . /etc/profile.d/lang.sh 
helps.
Comment 1 Juergen Weigert 2005-08-24 17:33:13 UTC
Created attachment 47443 [details]
fixed version of /etc/init.d/xdm

sourceing lang.sh is silly.
The code around $locale_vars below does almost what is needed. It just needs to
be correct code...
Comment 2 Juergen Weigert 2005-08-24 18:26:40 UTC
not quite.  
kdm needs LANG=POSIX and LC_CTYPE=de_DE.UTF-8  
  
the  /etc/init.d/xdm from comment#1 does LANG=de_DE.UTF-8 and 
LC_CTYPE=de_DE.UTF-8, which apparently does not switch to UTF-8 mode, as it 
prodices the same symptoms as setting everything to POSIX. 
Comment 3 Dr. Werner Fink 2005-08-25 08:08:54 UTC
In this case kdm is simply broken.
Comment 4 Dr. Werner Fink 2005-08-25 08:49:59 UTC
One major problem is that /etc/opt/kde3/share/config/kdeglobals
written by SuSEconfig overwrites the locale.  I now use the
line

   test -n "$LANG" && export KDE_LANG=$LANG

in /etc/init.d/xdm ... please test the next attachment.
Comment 5 Dr. Werner Fink 2005-08-25 08:51:20 UTC
Created attachment 47489 [details]
/etc/init.d/xdm

New version of /etc/init.d/xdm which uses KDE_LANG
Comment 6 Dr. Werner Fink 2005-08-25 09:15:00 UTC
Just test this, and it _is_ a KDM/KDE bug. The LANG variable
_must_ set to POSIX even if LC_CTYPE is set to an UTF-8
encoding.  The variable KDE_LANG does not work with kdm.
Comment 7 Dr. Werner Fink 2005-08-25 09:19:11 UTC
I've put a fixed /etc/init.d/xdm into aaa_base.
Comment 8 Dr. Werner Fink 2005-08-25 09:38:38 UTC
Fix the kdm
Comment 9 Stephan Kulow 2005-08-25 10:49:06 UTC
it's no kdm problem, but a config problem - and is fixed now. New 
kdebase3-SuSE is in done/STABLE 
Comment 10 Jan Engelhardt 2005-09-11 09:06:26 UTC
Maybe has to do with bug #116316 ?
Comment 11 Mike Fabian 2005-09-12 10:31:07 UTC
Jan> Maybe has to do with bug #116316 ?

No.