Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 18074 - panels are sorted always incasesensitive
panels are sorted always incasesensitive
Product: Red Hat Linux
Classification: Retired
Component: mc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jonathan Blandford
Depends On:
  Show dependency treegraph
Reported: 2000-10-02 07:21 EDT by Need Real Name
Modified: 2013-04-02 00:14 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-10-04 09:25:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2000-10-02 07:21:22 EDT
Both panels are sorted always incasesensitive no matter if you say so in
Sort order dialog.
Comment 1 Pavel Roskin 2000-10-03 20:55:41 EDT
That's because case sensitive sorting now uses strcoll() but it is not case sensitive in some locales.
I communicated with the author of this patch (Timur I. Bakeyev <timur@gnu.org>)
He insists that the bug is in glibc, not in mc.
Comment 2 Need Real Name 2000-10-04 09:25:30 EDT
strcoll seems to be OK. 
$ cat strcol.c
#include <string.h>

main(int argc, char *argv[])
        printf("%d %s %s\n",strcoll(argv[1], argv[2]), argv[1], argv[2]);
        return 0;
$ ./strcol abcd Abcd
1 abcd Abcd
$ ./strcol bbcd Abcd
1 bbcd Abcd
$ ./strcol Abcd abcd
-1 Abcd abcd
$ ./strcol Abcd bbcd
-1 Abcd bbcd
(using the same locales as in mc, ale without locales setting, so unset LC_CTYPE
and export LANG=en_US the behavior is the same, originally after instalation, no
changes made) 
So for me it seems to be OK. Also if you say Case sensitive sort it strips
all non alphanum characters from the beginning of filename.
So it looks like this:
Here is part of ~/.mc/ini:
[New Left Panel]
user_format=half type,name,|,size,|,perm
mini_status_format=half type,name,|,size,|,perm
user_status0=half type,name,|,size,|,perm
user_status1=half type,name,|,size,|,perm
user_status2=half type,name,|,size,|,perm
user_status3=half type,name,|,size,|,perm
user_status4=half type,name,|,size,|,perm

Note You need to log in before you can comment on or make changes to this bug.