Bug 430809 - Changed locale settings are reverted in subshell
Changed locale settings are reverted in subshell
Status: CLOSED NEXTRELEASE
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: initscripts (Show other bugs)
5.1
i386 Linux
low Severity low
: rc
: ---
Assigned To: initscripts Maintenance Team
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-29 16:32 EST by danf
Modified: 2008-01-29 16:39 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-01-29 16:39:37 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description danf 2008-01-29 16:32:02 EST
Description of problem:
If a user changes the current locale at the terminal by changing one of the
locale environment variables, those changes are lost in a new shell and the
system-wide defaults are substituted.

Version-Release number of selected component (if applicable):
initscripts-8.45.17.EL-1.el5.centos.1 (CentOS 5.1)

How reproducible:
100%

Steps to Reproduce:
1. export LANG=xx
2. bash
3. echo Should be xx: $LANG
  
Actual results:
Should be xx: en_CA.UTF-8

Expected results:
Should be xx: xx

Additional info:
This problem is solved in at least one other distribution by renaming the
"sourced" environment variable in /etc/profile.d/lang.sh to LC_SOURCED and
exporting it so that the /etc/sysconfig/i18n file is only ever read in once.
Comment 1 Bill Nottingham 2008-01-29 16:39:37 EST
This is fixed in the development tree, and will be in RHEL 6. I'm leery of
changing this behavior in a RHEL update for earlier releases, so I don't think
this will be backported at this time.

Note You need to log in before you can comment on or make changes to this bug.