Red Hat Bugzilla – Bug 60293
initscripts-6.53-1 is messing up $LANG
Last modified: 2014-03-16 22:25:48 EDT
I just upgraded to bash-2.05a-9. I upgraded to glibc-2.2.90-7 at the same time,
but I don't think that's the guilty party.
After upgrading bash, it's messing up my LANG environment variable setting:
jik:~!7> echo $SHELL
jik:~!8> echo $LANG
jik:~!9> bash -c 'echo $LANG'
This causes problems with programs that actually try to parse LANG, e.g.:
jik:~!10> bash -c 'perl -v'
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_COLLATE = "C",
LANG = "en_US="
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
This is perl, v5.6.1 built for i386-linux-thread-multi
Copyright 1987-2001, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
Turns out this has nothing to do with bash. The line "setenv LANG=$GDM_LANG" in
/etc/profile.d/lang.csh should say "setenv LANG $GDM_LANG".
Yes, this was fixed in 6.54-1 and later.