Bug 64526 - /etc/profile.d/lang.csh: is not same as /etc/profile.d/lang.sh
/etc/profile.d/lang.csh: is not same as /etc/profile.d/lang.sh
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
7.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-05-07 01:54 EDT by Need Real Name
Modified: 2014-03-16 22:27 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-05-07 02:01:59 EDT
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 Need Real Name 2002-05-07 01:54:36 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; NetBSD i386; ja-JP; rv:1.0rc1) Gecko/20020429

Description of problem:
In /etc/profle.d/lang.sh, when GDM_LANG is set, set environment variable LANG.
But in /etc/profile.d/lang.csh, set shell variable LANG instead of environment
variable LANG.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. put following lines to /etc/sysconfig/i18n.
LANG=En_US
GDM_LANG=ja_JP
2. change your login shell to tcsh.
3. login from console, check shell variable LANG end environment variable LANG.
	

Actual Results:  % set | grep LANG
LANG    ja_JP
% env | grep LANG
LANG=en_US
GDM_LANG=ja_JP


Expected Results:  % set | grep LANG
% env | grep LANG
LANG=ja_JP
GDM_LANG=ja_JP

Additional info:

to fix:

--- lang.csh-dist       Thu Mar 28 07:22:37 2002
+++ lang.csh    Tue May  7 14:34:47 2002
@@ -10,7 +10,7 @@
 
 if ($?GDM_LANG) then
     set sourced=1
-    set LANG=$GDM_LANG
+    setenv LANG=$GDM_LANG
 endif
 
 if ($sourced == 1) then
Comment 1 Need Real Name 2002-05-07 02:01:55 EDT
sorry, fix is not correct.

--- lang.csh-dist       Thu Mar 28 07:22:37 2002
+++ lang.csh    Tue May  7 15:00:17 2002
@@ -10,7 +10,7 @@
 
 if ($?GDM_LANG) then
     set sourced=1
-    set LANG=$GDM_LANG
+    setenv LANG $GDM_LANG
 endif
 
 if ($sourced == 1) then
Comment 2 Bill Nottingham 2002-05-07 11:49:47 EDT
Already fixed in 6.47-1, or thereabouts.

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