Bug 151369

Summary: LANG environment variable reset
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: gdbAssignee: Elena Zannoni <ezannoni>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: eng-i18n-bugs
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: 2005-09-27 13:05:21 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 Tim Waugh 2005-03-17 11:24:06 UTC
Description of problem:
LANG variable gets reset when running gdb.

Version-Release number of selected component (if applicable):
gdb-6.1post-1.20040607.43

How reproducible:
100%

Steps to Reproduce:

export LANG=zh_CN
gdb /usr/bin/gdb
b main
r
p (char*)getenv("LANG")
  
Actual results:
On rawhide, "en_GB.UTF-8" (my default locale) is displayed.

Expected results:
On FC3, "zh_CN" is displayed as expected.

Additional info:

Comment 1 Jens Petersen 2005-09-27 12:10:38 UTC
Hmm, when I try this on my fc4 box with gdb-6.3.0.0-1.21.x86_64, I get:

(gdb) p (char*) getenv("LANG")
zsh: segmentation fault  gdb /usr/bin/gdb
[petersen@localhost]~%
Message from syslogd@localhost at Tue Sep 27 21:08:47 2005 ...
localhost kernel: invalid operand: 0000 [2] SMP

Message from syslogd@localhost at Tue Sep 27 21:08:47 2005 ...
localhost kernel: invalid operand: 0000 [2] SMP

(virtual smp via HT: kernel-smp-2.6.12-1.1390_FC4.x86_64)

Comment 2 Tim Waugh 2005-09-27 13:05:21 UTC
Yeah, me too with kernel-2.6.12-1.1456_FC4.x86_64 and gdb-6.3.0.0-1.21.  

Works correctly, without even resetting LANG, with kernel-2.6.13-1.1574_FC5.i386
and gdb-6.3.0.0-1.65.

Looks like this is a case of "fixed in rawhide" for the original report, but
perhaps a separate report (against kernel?) is needed for the segmentation fault
issue.