[NTLUG:Discuss] Undoing Windows Sytle ls foo
MadHat
madhat at unspecific.com
Wed Aug 28 03:44:50 CDT 2002
On Tue, 2002-08-27 at 22:54, kbrannen at gte.net wrote:
> MadHat wrote:
> > On Mon, 2002-08-26 at 13:27, Kenneth Loafman wrote:
> >
> >>Just upgraded from RH 6.2 to 7.3. All is well except I can't seem to
> >>find which switches were installed that cause the oddball directory
> >>listing. I want (need) to have the old style UNIX directory listings
> >>with the dot-foo stuff first, alphabetized with case-sensitivity, etc.
> >> This new listing looks too much like the crap Windows users have to
> >>contend with.
> >
> >
> > Its not a library or a compile problem... it is a feature. Red Hat is
> > now setting LANG variables in the /etc/profile.d/lang.sh and
> > /etc/profile.d/lang.csh scripts to support foreign languages.
> >
> > By default for english, it is setting LANG to en_US.iso885915, if you
> > set LANG to just en, it goes back to 'normal' (yeh!!)
> >
> > The value is actually set in /etc/sysconfig/i18n for the whole system or
> > you can also create a local file ~/.i18n and put LANG=en in it to
> > override the system defaults.
>
> Except that I've seen this problem on SuSE too. So I guess you'd say they
> followed RH's lead, then changed it back? Unsetting LANG, or setting it to
> "en_US.iso885915" on both my SuSE 8.0 and a RH 7.2 machine don't cause it to
> "go bad". (BTW, my RH7.2 system defaults it to "en_US".)
I am not saying it is RedHat specific, I was saying that RedHat was not
setting it to 'en' and setting it to 'en' would fix the issue.
It is a feature of many programs, as if you change LANG it affects MANY
programs, like my evolution sorts differently, and my menu items sort
differently in KDE. It is a system wide feature for making Linux/Unix
and its apps more portable to other languages. The Default is going to
depend on the options you choose at setup.
>
> I also do not find LANG mentioned anywhere in the man page (or the info page).
> Where did you find this tidbit? I wonder what else I'm missing... :-)
>
google, reading, searching, thinking.
$ man bash
" LANG Used to determine the locale category for any cate-
gory not specifically selected with a variable
starting with LC_."
> Kevin
>
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
>
--
MadHat at Unspecific.com
"Anyone who understands Linux/Unix, really understands the universe.
Anyone who understands Windows, really understands Windows."
- Richard Thieme, DefCon 10, 2002
More information about the Discuss
mailing list