[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: sort weirdness



On Thu, Mar 01, 2001 at 12:23:55PM -0500, Chris Kloiber wrote:
> On Thu, 1 Mar 2001, Michael George wrote:
> 
> > I have two systems that have been upgraded to RHL 7.0.  One from 6.1, the
> > other from 6.2.
> >
> > One one system, sort will sort lines in a file as I would expect from the
> > past: capital letters preceed all lower-case letters.  However, on the other
> > one, it treats all letters as lower-case, as though the "-f" flag were set,
> > but it's not.
> >
> > I've check the man page and the info page and found nothing there.  I suspect
> > that the difference may lie in the LC_{CTYPE,COLLATE} files, but I don't know
> > how to check/manipulate them.  Can someone point me in the right direction?
> 
> I think this come up recently.
> 
> Try setting LC_COLLATE=C and see if that clears things up. This has to do
> with the full integration of the i18 (internationalization) stuff.
> Basically the default has been changed to the way your language sorts.
> Setting it equal to 'C' means to sort the way the C compiler has always
> done. If this works, put it in it's own file in /etc/profile.d and it will
> do it for you always.

Is not LC_COLLATE a file in /usr/lib/locale/en_US?  I will try this
suggestion, but it doesn't help me figure out why it works one way on one
machine and another on the other.

Thanks!

-Michael

-- 
No, my friend, the way to have good and safe government, is not to trust it
all to one, but to divide it among the many, distributing to every one exactly
the functions he is competent to.  It is by dividing and subdividing these
republics from the national one down through all its subordinations, until it
ends in the administration of every man's farm by himself; by placing under
every one what his own eye may superintend, that all will be done for the
best.
                -- Thomas Jefferson, to Joseph Cabell, 1816





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []