Bug 64526

Summary: /etc/profile.d/lang.csh: is not same as /etc/profile.d/lang.sh
Product: [Retired] Red Hat Linux Reporter: Need Real Name <hashikaw>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-05-07 06:01:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2002-05-07 05:54:36 UTC
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 06:01:55 UTC
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 15:49:47 UTC
Already fixed in 6.47-1, or thereabouts.