-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On Mon, Jan 20, 2014 at 01:02:26PM +0900, Olaf Meeuwissen wrote: > >> At the very > >> beginning of the /etc/X11/Xsession script LANG=C. > > > > Well, this one is a problem, it's should not be the case (and it's not > > the case for me on any of my box). > > C is the default locale on my system.
Ok, I don't have a default locale here (so it means it defaults to POSIX). > Okay, I've been looking at the source code a bit. Turns out that > session_set_env() does not set any environment variables directly. It > adds them to an internal list (session->priv->env). This list is > written to the session in `session_real_run()`. I didn't find any calls > to `session_unset_env()` for either LANG and GDM_LANG so would expect > both to be set in the session. > > However, the greeter and user session inherit the system default locale > courtesy of PAM as per comment in src/session-child.c. This probably > explains why I see LANG=C at the start of my Xsession. That might make sense, although I don't think it's the correct behavior in case an user actually choose a language in the selector. > Anyway, I now nuke GDM_LANG in ~/.xsessionrc and have not seen any > breakage yet. The `locale` output is as I expect it and my input method > editor works as it used to. I no longer have a ~/.dmrc (and it is not > recreated when you don't save your session). I can pick any language I > please from the chooser without this having *any* effect on my session. > That is, the chooser does not interfere with my customizations which is > what I want. > .dmrc has nothing to do with saving the session. And it's created (or at least should be) *before* the session is actually started. Regards. - -- Yves-Alexis Perez -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAEBCgAGBQJS3MYFAAoJEG3bU/KmdcCl/vEH/3s8idL1HPHVw+23abnGMte7 3ZefLPY4d+Mzyrd55eKmwUiU2UTO36P7uf3BhqrtmXPePdz7+jLkWHMSElly4NR4 /ucfGYD6VQyEZ4nvsJRV3a182wlhSXqDq2GXfYEFJ6DOZnUkB/sa7VfIJm9lBDH1 e4rWHpDRCbEVepvEZgQbDiJDKEXXCT/g4CzTSKsWGrMa1LRZLHUVOcI0ErN2DPGY Iz1ep4Pq2MbAXRbN7dqkrSibIEPWhoYSEACo2TQOOgFUeG4a4sMh4y3HBlS+LooV 9i3+pfrb3pYcr/sgkXBodepQ3EkvPPNww8Ksu3y0ydQ46inCXLdK7NWOGNDyKz4= =ap2m -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org