Ticket #1586 (new enhancement)

Opened 15 years ago

Last modified 12 years ago

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:1 follow-up: ↓ 2 Changed 15 years ago by andrew_b

  • Description modified (diff)

Menu -> [Left|Right] Panel -> Sort order...
[x] Case sensitive

Is this option uncecked?

comment:2 in reply to: ↑ 1 Changed 15 years ago by andrew_b

Sorry...

Replying to andrew_b:

Is this option uncecked?

unchecked

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:4 Changed 14 years ago by andrew_b

What is your locale?

comment:5 Changed 14 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=

comment:6 Changed 14 years ago by angel_il

set
LC_COLLATE=С

comment:7 Changed 14 years ago by pent

Not reproducible in 4.7.0.1 (Debian package mc).

comment:8 Changed 14 years ago by angel_il

  • Type changed from defect to enhancement

comment:9 Changed 12 years ago by andrew_b

  • Branch state set to no branch
  • Milestone changed from 4.7 to Future Releases
Note: See TracTickets for help on using tickets.