[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
http://bugzilla.novell.com/show_bug.cgi?id=567324
http://bugzilla.novell.com/show_bug.cgi?id=567324#c2
Carlos Robinson
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
http://bugzilla.novell.com/show_bug.cgi?id=567324
http://bugzilla.novell.com/show_bug.cgi?id=567324#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=567324
http://bugzilla.novell.com/show_bug.cgi?id=567324#c6
--- Comment #6 from Vincent Untz
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
http://bugzilla.novell.com/show_bug.cgi?id=567324
http://bugzilla.novell.com/show_bug.cgi?id=567324#c8
Vincent Untz
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
https://bugzilla.novell.com/show_bug.cgi?id=567324
https://bugzilla.novell.com/show_bug.cgi?id=567324#c10
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=567324
https://bugzilla.novell.com/show_bug.cgi?id=567324#c
Ye Yuan
https://bugzilla.novell.com/show_bug.cgi?id=567324
https://bugzilla.novell.com/show_bug.cgi?id=567324#c11
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=567324
https://bugzilla.novell.com/show_bug.cgi?id=567324#c12
Carlos Robinson
(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
https://bugzilla.novell.com/show_bug.cgi?id=567324
https://bugzilla.novell.com/show_bug.cgi?id=567324#c14
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=567324
https://bugzilla.novell.com/show_bug.cgi?id=567324#c15
--- Comment #15 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=567324
https://bugzilla.novell.com/show_bug.cgi?id=567324#c16
--- Comment #16 from Carlos Robinson
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
https://bugzilla.novell.com/show_bug.cgi?id=567324
https://bugzilla.novell.com/show_bug.cgi?id=567324#c18
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=567324
https://bugzilla.novell.com/show_bug.cgi?id=567324#c
Alberto Planas Dominguez
http://bugzilla.novell.com/show_bug.cgi?id=567324
http://bugzilla.novell.com/show_bug.cgi?id=567324#c38
--- Comment #38 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com