[Bug 216518] New: When using GNOME desktop with zh_CN.UTF-8 locale, scim starts without correct locale setting.
https://bugzilla.novell.com/show_bug.cgi?id=216518 Summary: When using GNOME desktop with zh_CN.UTF-8 locale, scim starts without correct locale setting. Product: openSUSE 10.2 Version: Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: zsu@novell.com QAContact: qa@suse.de CC: mfabian@novell.com When using GNOME desktop with zh_CN.UTF-8 locale, the interface of scim input method is English. Checking /proc/<pid of scim>/environ found that LANG was not set at all. It seems that /etc/profile was not loaded before launching input method. But there is no such issue when using KDE desktop. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 ------- Comment #1 from zsu@novell.com 2006-10-31 02:01 MST ------- This issue disappeared when using kdm. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 jpr@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |danw@novell.com ------- Comment #2 from jpr@novell.com 2006-10-31 06:47 MST ------- Dan, do you have any thoughts here? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 danw@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|danw@novell.com |zsu@novell.com ------- Comment #3 from danw@novell.com 2006-10-31 10:40 MST ------- Zhe, where is scim getting started from? It looks to me like /etc/X11/xdm/Xsession should be setting LANG, then sourcing /etc/X11/xinit/xinitrc.common, which sources /etc/X11/xim, which will start scim. But in that case, scim should have the right value of LANG set. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 ------- Comment #4 from zsu@novell.com 2006-10-31 19:43 MST ------- I don't know, really. scim is launched in /etc/X11/xim, this file is sourced in /etc/X11/xinit/xinitrc.common. But /etc/X11/xinit/xinitrc.common is sourced in multiple files: /etc/X11/xinit/xinitrc /etc/X11/xdm/Xsession /etc/X11/xdm/sys.xsession Then I don't know which file will be loaded by gdm, and when it will be loaded. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |syamazaki@novell.com ------- Comment #5 from mfabian@novell.com 2006-11-03 10:46 MST ------- I can reproduce that problem with a Japanese installation as well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 ------- Comment #6 from mfabian@novell.com 2006-11-03 11:12 MST ------- /etc/X11/xdm/Xsession is executed by /etc/opt/gnome/gdm/Xsession which contains: #!/bin/sh exec /etc/X11/xdm/Xsession $1 $GDM_LANG In the login menu of gdm, one can select a language. If I explicitely select Japanese there, $GDM_LANG is set when /etc/opt/gnome/gdm/Xsession runs and the the problem goes disappears. If I do *not* explicitly select a language in the gdm menu, $GDM_LANG is empty when /etc/opt/gnome/gdm/Xsession runs, therefore Xsession is executed without a second parameter and the problem in this bug appears. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 ------- Comment #7 from mfabian@novell.com 2006-11-03 11:34 MST ------- Therefore I think the problem is not in the scripts but in gdm. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|zsu@novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 ------- Comment #8 from mfabian@novell.com 2006-11-06 10:22 MST ------- But it might be intentional. See line 3563 in slave.c in the source code of gdm: /* Only force GDM_LANG to something if there is other then * system default selected. Else let the session do whatever it * does since we're using sys default */ if ( ! ve_string_empty (language)) { g_setenv ("LANG", language, TRUE); g_setenv ("GDM_LANG", language, TRUE); } Maybe Stanislav fixed this long ago but his fix got lost?: ------------------------------------------------------------------- Thu Feb 20 15:52:52 CET 2003 - sbrabec@suse.cz - Use system language for GDM login from /etc/sysconfig/language. ------------------------------------------------------------------- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 ------- Comment #9 from mfabian@novell.com 2006-11-06 10:50 MST ------- This could be fixed in gdm of course, but I guess it is nicer to improve /etc/X11/xdm/Xsession instead. Like this: rossini:/etc/X11/xdm # diff -u Xsession.orig Xsession --- Xsession.orig 2006-11-06 20:05:08.000000000 +0100 +++ Xsession 2006-11-06 20:05:43.000000000 +0100 @@ -165,6 +165,9 @@ if test $# -ge 2 -a -n "$2" ; then LANG=$2 export LANG + else + # get the system default locale settings: + . /etc/profile.d/lang.sh fi fi rossini:/etc/X11/xdm # Adding author of Xsession to CC:. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |sndirsch@novell.com |gnome@forge.provo.novell.com| Component|GNOME |X.Org Priority|P5 - None |P2 - High -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 ------- Comment #10 from mfabian@novell.com 2006-11-06 11:06 MST ------- Or maybe better like this: rossini:/etc/X11/xdm # diff -u Xsession.orig Xsession --- Xsession.orig 2006-11-06 20:05:08.000000000 +0100 +++ Xsession 2006-11-06 20:29:54.000000000 +0100 @@ -165,6 +165,11 @@ if test $# -ge 2 -a -n "$2" ; then LANG=$2 export LANG + else + # get the system default locale settings: + if [ -z "$LANG" -a -f /etc/profile.d/lang.sh ] ; then + . /etc/profile.d/lang.sh + fi fi fi rossini:/etc/X11/xdm # In that case LANG is not overwritten if it is already set for whatever reason. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #11 from sndirsch@novell.com 2006-11-06 14:54 MST ------- fixed for STABLE/Factory/BS and Beta3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | ------- Comment #12 from mfabian@novell.com 2006-11-09 10:09 MST ------- Unfortunately my patch from comment #10 doesn't work for xdm. It works for gdm because gdm calls Xsession with at least 1 argument. But xdm may call Xsession without any arguments at all. To make it work with both gdm and xdm, the patch needs to be changed a little bit, like this: rossini:/etc/X11/xdm # diff -u Xsession.orig Xsession --- Xsession.orig 2006-11-06 20:05:08.000000000 +0100 +++ Xsession 2006-11-09 18:52:15.000000000 +0100 @@ -169,6 +169,13 @@ fi # +# If LANG is still not set, get the system default locale settings: +# +if [ -z "$LANG" -a -f /etc/profile.d/lang.sh ] ; then + . /etc/profile.d/lang.sh +fi + +# # No window manager? Get system default # if test "$forced" != "yes" ; then rossini:/etc/X11/xdm # (This patch is against the original version of Xsession, not against the already patched version after applying the patch from comment #10). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216518 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #13 from sndirsch@novell.com 2006-11-09 13:00 MST ------- fixed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com