Bad sort order under glibc 2.2

Dmitry Yu. Bolkhovityanov D.Yu.Bolkhovityanov at inp.nsk.su
Wed Jul 11 13:46:44 UTC 2001


On 11 Jul 01 at 14:35, martin at internet-treff.uni-ko wrote:

> "Dmitry Yu. Bolkhovityanov" <D.Yu.Bolkhovityanov at inp.nsk.su> wrote:
>
> > .bashrc
> > bear
> > .cshrc
> >
> > while under glibc 2.1 it gave
> >
> > .bashrc
> > .cshrc
> > bear
>
> libc6 2.2.3 on Debian sorts the lines like your 2.1
>
> This is with LANG=C.
>
> Maybe you have some locale settings active that influence the result?

    Yes, the locale isn't "C" -- it is "en_US" by default, and should be
ru_RU.KOI8-R (since I live in Russia).

    And, setting locale to "C" makes sort order normal (with dot-files
first), and the same applies to nonexistent locales like gp_PC (green people
from Proxima Centaura).

    But anything like de_DE, en_GB, uk_UA etc. has an effect of mixing sort
order.

    BTW, there's one more problem -- filenames of various cases are mixed, so
that "README", "INSTALL", "Makefile" etc. go *after* e.g. configure.in.  But
the same problem affects "ls", so this one should definitely be reported to
glibc team (strange, but I found nothing about this in their bug-tracking
system).

       ___________________________________________________________________
       Dmitry Yu. Bolkhovityanov  |  Novosibirsk, RUSSIA
       phone (383-2)-39-49-56     |  The Budker Institute of Nuclear Physics
                                  |  Lab. 5-13




More information about the mc mailing list