Bug 64526 - /etc/profile.d/lang.csh: is not same as /etc/profile.d/lang.sh
Summary: /etc/profile.d/lang.csh: is not same as /etc/profile.d/lang.sh
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts   
(Show other bugs)
Version: 7.2
Hardware: All Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-05-07 05:54 UTC by Need Real Name
Modified: 2014-03-17 02:27 UTC (History)
1 user (show)

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: ---


Attachments (Terms of Use)

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.


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