Bug 112774

Summary: kdm does not know that we live in utf-8
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Juergen Weigert <jw>
Component: KDEAssignee: Stephan Kulow <coolo>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: aj, sndirsch
Version: Beta 3   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: fixed version of /etc/init.d/xdm
/etc/init.d/xdm

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.