Bad sort order under glibc 2.2



    Hi!

    MC exposes a bad sort order under glibc 2.2: dot-files are sorted as if
they had no "." at all.  I.e., "bear" goes after ".bashrc" but *before*
".cshrc".  Previously all dot-files were sorted before others.

    A quick check shows that this is a "feature" of glibc:

goofy:~% echo 'bear\n.cshrc\n.bashrc'|sort
.bashrc
bear
.cshrc

while under glibc 2.1 it gave

.bashrc
.cshrc
bear

    While this is definitely a bug (aka "feature") of glibc, dot-files are
very special (like directories), so, will it be possible to add a check for
dot-files in the sorting code (as it is done now for directories)?  Plus
maybe make it obey the Options->Config->"miX all files".

BTW1: my system is a stock RedHat 7.1/i386, glibc-2.2.2-10, mc-4.5.51-32.

BTW2, maybe mc-devel will be a better place for this mail?

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




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