[Bug 567324] New: Gnome ignores the ~/.i18n file
http://bugzilla.novell.com/show_bug.cgi?id=567324 http://bugzilla.novell.com/show_bug.cgi?id=567324#c0 Summary: Gnome ignores the ~/.i18n file Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: carlos.e.r@opensuse.org QAContact: qa@suse.de Found By: --- Blocker: --- The supposedly standard or correct place to write the locale configuration for each user is the ~/.i18n file, with settings like: LC_TIME=en_DK.UTF-8 LC_MONETARY=es_ES.euro which is, in the text shell, loaded by /etc/profile.d/lang.sh. However, this file is ignored when loading gnome; not even xterms get it. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=567324 http://bugzilla.novell.com/show_bug.cgi?id=567324#c1 Vincent Untz <vuntz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |vuntz@novell.com Info Provider| |carlos.e.r@opensuse.org --- Comment #1 from Vincent Untz <vuntz@novell.com> 2010-01-04 16:17:19 UTC --- Isn't this because of this code in /etc/profile.d/lang.sh: # # Already done by the GDM # test -z "$GDM_LANG" || return Can you edit /etc/profile.d/lang.sh and see if it helps? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=567324 http://bugzilla.novell.com/show_bug.cgi?id=567324#c2 Carlos Robinson <carlos.e.r@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|carlos.e.r@opensuse.org | --- Comment #2 from Carlos Robinson <carlos.e.r@opensuse.org> 2010-01-18 01:42:04 UTC --- I thought I had a(In reply to comment #1)
Isn't this because of this code in /etc/profile.d/lang.sh:
# # Already done by the GDM # test -z "$GDM_LANG" || return
Can you edit /etc/profile.d/lang.sh and see if it helps?
I thought I had already answered this? Maybe I wrote the comment and forgot to commit. Anyway, yes, I commented out that line, and yes, the locale in gnome changes according to the .i18 file. Thanks. Perhaps that file should be updated? Or the logic re-thought. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=567324 http://bugzilla.novell.com/show_bug.cgi?id=567324#c3 Vincent Untz <vuntz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |werner@novell.com Component|GNOME |Basesystem AssignedTo|bnc-team-gnome@forge.provo. |bnc-team-screening@forge.pr |novell.com |ovo.novell.com Summary|Gnome ignores the ~/.i18n |GDM_LANG check in |file |/etc/profile.d/lang.sh | |makes GNOME ignore the | |~/.i18n file --- Comment #3 from Vincent Untz <vuntz@novell.com> 2010-01-18 02:08:22 UTC --- This is an issue in aaa_base. Note that I have no idea if ~/.i18n is supposed to be standard or not, and if ~/.i18n overrides settings chosen in the GDM login options, the user might be confused. But then, on the other hand, the user would have to create ~/.i18n first, so... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=567324 http://bugzilla.novell.com/show_bug.cgi?id=567324#c yang xiaoyu <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |ro@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=567324 http://bugzilla.novell.com/show_bug.cgi?id=567324#c6 --- Comment #6 from Vincent Untz <vuntz@novell.com> 2010-01-18 12:20:07 UTC --- (In reply to comment #5)
that is that ~/.i18n was a feature request ... beside this, the GNOME people had told me that GNOME does the I18N stuff in its own fashion way (which is also true for modern ssh connections).
If this has changed now the line should be removed.
Well, with GDM, we can set the language and keyboard layout of the user session. However, this bug report is apparently about the fact that with ~/.i18n, more detailed locale settings can be changed (like LC_TIME), so it's not just about the language. And here, GDM can't do anything. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=567324 http://bugzilla.novell.com/show_bug.cgi?id=567324#c7 Ruediger Oertel <ro@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |vuntz@novell.com --- Comment #7 from Ruediger Oertel <ro@novell.com> 2010-01-18 13:08:18 UTC --- well, the code in /etc/profile.d/lang.sh (resp. lang.csh) does not just source .i18n if present. It does the complete language settings, which would override gdm language settings completely, I'm not sure this is what you want ... Vincent: should I hack some code to _only_ source .i18n for the "GDM_LANG is set"-case ? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=567324 http://bugzilla.novell.com/show_bug.cgi?id=567324#c8 Vincent Untz <vuntz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|vuntz@novell.com | --- Comment #8 from Vincent Untz <vuntz@novell.com> 2010-01-18 13:42:23 UTC --- We have this in the upstream gdm Xsession file (we don't use it in openSUSE). if [ -n "$GDM_LANG" ]; then LANG="$GDM_LANG" export LANG if [ -n "$LC_ALL" ]; then if [ "$LC_ALL" != "$LANG" ]; then LC_ALL="$LANG" fi else unset LC_ALL fi if [ -n "$LANGUAGE" ]; then if [ "$LANGUAGE" != "$LANG" ]; then LANGUAGE="$LANG" fi else unset LANGUAGE fi if [ -n "$LINGUAS" ]; then if [ "$LINGUAS" != "$LANG" ]; then LINGUAS="$LANG" fi else unset LINGUAS fi fi I guess this is code that you could put at the end of lang.sh. It will make sure that the language is the one selected in GDM, but it will also make it possible to override some other LC_* variable. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=567324 https://bugzilla.novell.com/show_bug.cgi?id=567324#c9 --- Comment #9 from Guido Berhörster <gber@opensuse.org> 2013-05-17 16:10:40 UTC --- *** Bug 807091 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=807091 -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=567324 https://bugzilla.novell.com/show_bug.cgi?id=567324#c10 Carlos Robinson <carlos.e.r@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Basesystem |Basesystem AssignedTo|ro@suse.com |bnc-team-screening@forge.pr | |ovo.novell.com Product|openSUSE 11.2 |openSUSE 12.3 Target Milestone|--- |Final --- Comment #10 from Carlos Robinson <carlos.e.r@opensuse.org> 2013-05-17 18:35:32 UTC --- Issue still has not been solved in 12.3. See bug marked as duplicate of this. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=567324 https://bugzilla.novell.com/show_bug.cgi?id=567324#c Ye Yuan <yyuan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yyuan@suse.com AssignedTo|bnc-team-screening@forge.pr |werner@suse.com |ovo.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.
https://bugzilla.novell.com/show_bug.cgi?id=567324 https://bugzilla.novell.com/show_bug.cgi?id=567324#c11 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |carlos.e.r@opensuse.org --- Comment #11 from Dr. Werner Fink <werner@suse.com> 2013-06-04 03:05:17 UTC --- (In reply to comment #10) How does this fit with http://bugzilla.novell.com/show_bug.cgi?id=807091#c19 (In reply to comment #8) Currently the /etc/X11/xdm/Xsession parses the arugments on its command line to serach for string with underscore ([a-z][a-z]_[A-Z][A-Z]* to be exact) ... Has this changed that means does GDM use both command line arguments as well as environment variables? Nevertheless I prefere to add your lines of shell code to /etc/X11/xdm/Xsession instead of /etc/profile.d/lang.sh as the later script will be also used on the console as well as with e.g. slogin/ssh and with su -l -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=567324 https://bugzilla.novell.com/show_bug.cgi?id=567324#c12 Carlos Robinson <carlos.e.r@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|carlos.e.r@opensuse.org | --- Comment #12 from Carlos Robinson <carlos.e.r@opensuse.org> 2013-06-04 03:42:52 UTC --- (In reply to comment #11)
(In reply to comment #10)
How does this fit with https://bugzilla.novell.com/show_bug.cgi?id=807091#c19
I'm sorry, I don't know. It was not my decision to mark one as duplicate of the other, I think they are not. Related, yes; same bug, no. Maybe you can undo the duplication, and they will listen to you (but not to me). The original report here, #0, was back in 2009, so I have lost track of what works because I hacked the scripts myself and what works out of the box + mandatory patches.
(In reply to comment #8)
Currently the /etc/X11/xdm/Xsession parses the arugments on its command line to serach for string with underscore ([a-z][a-z]_[A-Z][A-Z]* to be exact) ... Has this changed that means does GDM use both command line arguments as well as environment variables?
In the other bug I commented that XDM works correctly. In 12.3 I have not installed GDM, so I haven't tested it. (and I have hacked the script later, as a workaround, so in order to test it I would have to undo it first)
Nevertheless I prefere to add your lines of shell code to /etc/X11/xdm/Xsession instead of /etc/profile.d/lang.sh as the later script will be also used on the console as well as with e.g. slogin/ssh and with su -l
Well, text terminals work, they import correctly ~/.i18n without any change. IIRC, ssh works, to. I'd have to re-verify, -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=567324 https://bugzilla.novell.com/show_bug.cgi?id=567324#c13 --- Comment #13 from Dr. Werner Fink <werner@suse.com> 2013-06-04 06:57:05 UTC --- Created an attachment (id=542532) --> (http://bugzilla.novell.com/attachment.cgi?id=542532) /etc/X11/xdm/Xsession Please giv this Xsession script a try, also check if the error output will be redirected to a file below your home directory. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=567324 https://bugzilla.novell.com/show_bug.cgi?id=567324#c14 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |carlos.e.r@opensuse.org --- Comment #14 from Dr. Werner Fink <werner@suse.com> 2013-06-07 04:27:48 UTC --- Please check out SR#177978 -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=567324 https://bugzilla.novell.com/show_bug.cgi?id=567324#c15 --- Comment #15 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-06-07 07:00:11 CEST --- This is an autogenerated message for OBS integration: This bug (567324) was mentioned in https://build.opensuse.org/request/show/177979 Factory / xdm -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=567324 https://bugzilla.novell.com/show_bug.cgi?id=567324#c16 --- Comment #16 from Carlos Robinson <carlos.e.r@opensuse.org> 2013-06-07 05:20:05 UTC --- (In reply to comment #14)
Please check out SR#177978
Sorry, it will have to wait. That machine is doing an upgrade to 12.3, DVD method, but it is going to download 9.7 GB from internet at 100KB/s - despite my efforts to tell it to use the DVD. ETA is 28 hours, plus configuration time after that. I also have two other 12.3 installs, but they are on the same hardware. Your test will be done in one of those two. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=567324 https://bugzilla.novell.com/show_bug.cgi?id=567324#c17 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|carlos.e.r@opensuse.org | Resolution| |NORESPONSE --- Comment #17 from Dr. Werner Fink <werner@suse.com> 2013-08-06 12:39:26 UTC --- No response :( -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=567324 https://bugzilla.novell.com/show_bug.cgi?id=567324#c18 Carlos Robinson <carlos.e.r@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|NORESPONSE | --- Comment #18 from Carlos Robinson <carlos.e.r@opensuse.org> 2013-08-11 19:15:31 UTC --- Sorry, I forgot :-( I have copied the file into "/etc/X11/xdm/Xsession", and created a "~/.i18n" file. Logged out, logged in again, and tested: cer@eleanor-c:~> set | grep GDM_LANG cer@eleanor-c:~> set | grep LC_TIME cer@eleanor-c:~> So, it is not working. This is a fresh installation of 12.3 inside vmplayer; session is XFCE, and session manager is "/usr/sbin/lightdm". A text terminal via ssh does get it, as expected: cer@eleanor-c:~> set | grep LC_TIME LC_TIME=en_DK.UTF-8 for lc in LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAMELC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL; cer@eleanor-c:~> I have another machine, but besides it having changes applied, it is also running the same combo of xfce and lightdm, so there is no point in testing there. If you want I could perhaps install a different session manager - I use these virtual machines for testing. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=567324 https://bugzilla.novell.com/show_bug.cgi?id=567324#c Alberto Planas Dominguez <aplanas@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| | GOLD -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=567324 http://bugzilla.novell.com/show_bug.cgi?id=567324#c38 --- Comment #38 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (567324) was mentioned in https://build.opensuse.org/request/show/361376 Factory / aaa_base -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com