Hide Forgot
+++ This bug was initially created as a clone of Bug #1001196 +++ Description of problem: When I login to gnome, my settings from /etc/locale.conf are not imported into my environment. Version-Release number of selected component (if applicable):gnome-shell-3.8.4-2.fc19 How reproducible: 100% Steps to Reproduce: 1.add LC_COLLATE="C" to /etc/locale.conf 2.login via ssh or vtty 3.note LC_COLLATE is set 4.login to gnome-shell 5.open terminal 6.note LC_COLLATE is not set Actual results: default settings are not honored Expected results: the defaults set in /etc/locale.conf should be honored Additional info: --- Additional comment from Jorge Fábregas on 2013-09-14 09:35:32 EDT --- I just bumped into this: installed Fedora 19, updated all packages, and the first thing I did was to change LANG=en_US.UTF-8 to LANG=en_US.iso88591 in /etc/locale.conf. After rebooting the system, when I log into GNOME Shell with my regular user and execute "locale" I still see the old en_US.UTF-8. I could change the locale thru my user's .bashrc but that would affect only the bash session. --- Additional comment from Jorge Fábregas on 2013-09-28 08:52:35 EDT --- Hi, Is there any update on this? A "can't reproduce", "wont fix in F19", "known issue" etc would be enough. Thanks, Jorge
gnome-shell doesn't touch any locale settings, the upstream bug identified gdm not passing on LC_COLLATE to gnome-session.
i just posted a comment to the upstream report: This really should be handled by pam_systemd. see: http://lists.freedesktop.org/archives/systemd-devel/2013-January/007908.html But that hasn't merged yet. In the meantime, /etc/profile.d/lang.sh has this: if [ -n "$LANG" ]; then ... else for langfile in /etc/locale.conf "$HOME/.i18n" ; do [ -f $langfile ] && . $langfile && sourced=1 done fi if [ "$sourced" = 1 ]; then ... [ -n "$LC_COLLATE" ] && export LC_COLLATE || unset LC_COLLATE ... fi but GDM sets LANG so locale.conf isn't getting source. the fix, I guess, is to not set LANG so lang.sh works.
Upstream commit for gdm has a workaround: https://git.gnome.org/browse/gdm/commit/?id=c672e4e49983d285e829c1ec846d22fbf19bf29a
Let's just dupe this to bug 1056181. If we go that route, the upstream commit isn't needed, and the upstream commit isn't really good enough on its own since it requires a daemon restart for changes to take affect. *** This bug has been marked as a duplicate of bug 1056181 ***