Patch for dot-files sort order under glibc 2.2

Dmitry Yu. Bolkhovityanov D.Yu.Bolkhovityanov at inp.nsk.su
Wed Jul 11 15:30:22 UTC 2001


    Hi!

    I worked out a patch (very tiny BTW -- thanks to good style of MC
sources) which fixes the problem.

    The idea is trivial -- "ad" and "bd" flags change from boolean to
integers (they are integers anyway, because of "bd-ad"), and "ISDIR" gets
bigger weight than "is-dot-file".

    The patch is against mc-4.5.54.

    I'm crossposting it to mc-devel (sorry if it isn't needed).

    As to case mixing in name sort, there is a "FIXME" note just before
#define string_sortcomp, so somebody obviously realized the problem before,
but yet with no solution.

       ___________________________________________________________________
       Dmitry Yu. Bolkhovityanov  |  Novosibirsk, RUSSIA
       phone (383-2)-39-49-56     |  The Budker Institute of Nuclear Physics
                                  |  Lab. 5-13
-------------- next part --------------
This message contains a file prepared for transmission using the
MIME BASE64 transfer encoding scheme. If you are using Pegasus
Mail or another MIME-compliant system, you should be able to extract
it from within your mailer. If you cannot, please ask your system
administrator for help.

   ---- File information -----------
     File:  MCSORT.DIF
     Date:  11 Jul 2001, 21:15
     Size:  424 bytes.
     Type:  Binary
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MCSORT.DIF
Type: application/octet-stream
Size: 424 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20010711/4d688187/attachment.obj>


More information about the mc-devel mailing list