[SLL] LANG=C and Red Hat

Brian Hatch bri at ifokr.org
Thu Dec 6 06:18:19 PST 2007


Just about 2007-12-06 07:04 -0600, reed at reedmedia.net blathered:

> For several years, on many versions of Red Hat and Fedora, on many 
> different systems, and using many different terminals, I have frequently 
> received garbage (wrong characters) when receiving gcc error messages and 
> reading man pages. In most cases, these systems were installed and setup 
> by someone else.
> 
> My fix is usually just "export LANG=C".

LANG=C and LC_LOCATE=C (to make 'ls' sort asciibetically, not
alphabetically, because dammit I like to have capitalized filenames
come first, not sort throughouth!) are in my .profile everywhere I
go.  Along with a lot of 'unalias' commands (rm, etc) and other
shell options which show my age (turn off noclobber, let me exit
with EOF if I'm stupid enough to type it, etc)

> I am just curious: does this happen to you a lot?

Not since I put my profile into subversion.  ;-)

> And why are the defaults 
> like this? Or if it is not a default setup, what is configured wrong and 
> why is it so common?

Why would I want a color ls by default?  Same people picked the weird
LANG setting that's killing you that probably works dandy in many
terminals, but not in the one you're using.

-- 
Brian Hatch                  "You don't get 'sysadmin day', you have
   Systems and                your own holiday, network boy!"
   Security Engineer         "What, the "Kick my ass because
http://www.ifokr.org/bri/      I'm your bitch" day?
                             --Jason and Casey
Every message PGP signed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists2.linuxjournal.com/pipermail/linux-list/attachments/20071206/5ae9b602/attachment.sig 


More information about the linux-list mailing list