Ticket #1586 (new enhancement)
Sorting order differs from that of ls
Reported by: | pent | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Future Releases |
Component: | mc-core | Version: | 4.7.0-pre1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description (last modified by andrew_b) (diff)
The file sorting order in mc differs from that of ls in my locale:
┌<─ ~/test ─────────────────────────────────────v>┐ │ Имя │Размер │Время правки │ │/.. │-ВВЕРХ-│ ▴ │ Test.txt │ 0│Июл 20 21:14 ◈ │ a.txt │ 0│Июл 20 21:15 ▒ │ b.txt │ 0│Июл 20 21:15 ▒ pent@neo:~/test$ ls -l итого 0 -rw-r--r-- 1 pent pent 0 Июл 20 21:15 a.txt -rw-r--r-- 1 pent pent 0 Июл 20 21:15 b.txt -rw-r--r-- 1 pent pent 0 Июл 20 21:14 Test.txt pent@neo:~/test$ LANG=C ls -l total 0 -rw-r--r-- 1 pent pent 0 Jul 20 21:14 Test.txt -rw-r--r-- 1 pent pent 0 Jul 20 21:15 a.txt -rw-r--r-- 1 pent pent 0 Jul 20 21:15 b.txt
I think mc should respect user locale settings.
I'm ready to provide any additional info.
Andrey Paramonov
Change History
comment:3 Changed 15 years ago by pent
It was checked, thanks for the tip. However, with the option unchecked, the sorting order still differs from that of ls:
┌<─ ~/test ──────────────────────────────────────────v>┐ │ Имя │Размер │Время правки│ │/.. │-ВВЕРХ-│ │ │ А │ 2│Сен 6 16:26│ │ Б │ 2│Сен 6 16:26│ │ а │ 2│Сен 6 16:26│ │ б │ 2│Сен 6 16:26│ pent@neo:~/test$ ls -l итого 16 -rw-r--r-- 1 pent pent 2 Сен 6 16:26 а -rw-r--r-- 1 pent pent 2 Сен 6 16:26 А -rw-r--r-- 1 pent pent 2 Сен 6 16:26 б -rw-r--r-- 1 pent pent 2 Сен 6 16:26 Б
Andrey Paramonov
comment:5 Changed 15 years ago by pent
pent@neo:~$ locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=
Menu -> [Left|Right] Panel -> Sort order...
[x] Case sensitive
Is this option uncecked?