Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1040616

Summary: gnome does not preserve settings from /etc/locale.conf
Product: Red Hat Enterprise Linux 7 Reporter: jcpunk
Component: gdmAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: csieh, fmuellner, jorge.fabregas, misterbonnie, otaylor, riehecky, samkraju, walters
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1001196 Environment:
Last Closed: 2014-02-12 15:33:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jcpunk 2013-12-11 17:25:39 UTC
+++ 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

Comment 1 Florian Müllner 2013-12-12 10:42:08 UTC
gnome-shell doesn't touch any locale settings, the upstream bug identified gdm not passing on LC_COLLATE to gnome-session.

Comment 2 Ray Strode [halfline] 2013-12-12 16:38:02 UTC
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.

Comment 4 Pat Riehecky 2014-01-29 20:53:34 UTC
Upstream commit for gdm has a workaround:

https://git.gnome.org/browse/gdm/commit/?id=c672e4e49983d285e829c1ec846d22fbf19bf29a

Comment 6 Ray Strode [halfline] 2014-02-12 15:33:09 UTC
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 ***