Bug - TC does not sort cyrillic names
Moderators: Hacker, petermad, Stefan2, white
Bug - TC does not sort cyrillic names
Hello
I have a problem with TC properly sorting files by name if files have names in cyrillic symbols. Operation system - WinXP English
Windows Explorer and other file managers shows files in a proper order. but TC does not sort it at all. For example, you can see files, started with cyrillic A in multiple places. The same goes for all other letters.
Usually list looks like this:ЧАДВАМКАВ......
I tried to change fonts to cyrillic fonts, but it did not help.
Other people, who use WinXP Cyrillic do not have this problem.
I have a problem with TC properly sorting files by name if files have names in cyrillic symbols. Operation system - WinXP English
Windows Explorer and other file managers shows files in a proper order. but TC does not sort it at all. For example, you can see files, started with cyrillic A in multiple places. The same goes for all other letters.
Usually list looks like this:ЧАДВАМКАВ......
I tried to change fonts to cyrillic fonts, but it did not help.
Other people, who use WinXP Cyrillic do not have this problem.
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
If cyrillic is your main language, you need to set the default font for non-Unicode characters to cyrillic (in control panel - regional settings). TC cannot currently sort Unicode strings from different codepages.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
No, my main language is English. People with main language cyrillic do not have such problem.If cyrillic is your main language
Too bad. Windows Explorer itself can do it.TC cannot currently sort Unicode strings from different codepages.
Salamander Commander can do it
2x Commander can do it.
FAR can do it
Even grandpa NC4 can do it
Is it a big problem to sort it right?
2 slon:ghisler(Author) wrote:You need to set the default font for non-Unicode characters to cyrillic (in control panel - regional settings)
That's all. All versions/locales of Windows will provide support for displaying/sorting cyrillic strings, and TC will also do.
consider what papa says

No matter how many fish in the sea,
It'll be so empty, without me!
It'll be so empty, without me!
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Then why not use one of these? TC isn't the tool in all situations! And yes, it is planned for one of the next versions, but sorting is more complex than you may think. I want to avoid infinite loops caused by a mix of Unicode and non-Unicode sorting, so this feature requires extensive testing.Too bad. Windows Explorer itself can do it.
Salamander Commander can do it
2x Commander can do it.
FAR can do it
Even grandpa NC4 can do it
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Again, this is not the case. Default font has nothing to do with sort, because all other programs and WIndows Explorer itself correctly sorts file list. If sort order depends on font, then all Windows apps will not be able to display sorted list, and it is not true. When I do File-Open in ANY applicaton, it sorts files correctly, no matter, which language or mix of languages to use.ghisler(Author) wrote:
You need to set the default font for non-Unicode characters to cyrillic (in control panel - regional settings)
2 slon:
That's all. All versions/locales of Windows will provide support for displaying/sorting cyrillic strings, and TC will also do
I don't know, how TC does a sort, but, i guess, it does not use windows tools for it and has its own solution. Maybe, author can change it to use the same mechanizm, as every other windows application instead of improving TC sort algorithm?
Wow! But There is no special situation! It just ordinary file list! If you cannot even use TC to display files in the right order, then is it worth to buy such application at all? Sorry for offence, nothing personal.Then why not use one of these? TC isn't the tool in all situations!
No, it's not an ordinary file list, since some of the files use unicode filenames, which makes things more compicated as a programmer.slon wrote:It just ordinary file list! If you cannot even use TC to display files in the right order, then is it worth to buy such application at all? Sorry for offence, nothing personal.
Just so you know, not everybody uses unicode, and with 8-bit character filesnames Total Commander is certainly the best.
Of all the planets I've been to, this one is my favorite.
2 slon:
Hmm... I think there's some misunderstanding here... I just looked up `My Documents` folder, which is full of different files - english and russian names. They are being sorted in this way:
01file.ext
apple.ext
banana.ext
...
yoshemito.ext
zero.ext
àðáóç.ext
áàðáàðèñ.ext
êðûæîâíèê.ext
...
÷åðåøíÿ.ext
ÿáëîêî.ext
(The second part lists russian files - in a right alphabetical order - for those people who can't see russian chars here in the forum)
Folders are being sorted the same way. Am I blind?
IMHO this is the most natural way I ever wanted my files to be sorted. Windows Explorer shows them 100% as TC. So, please, show me the problem?
Hmm... I think there's some misunderstanding here... I just looked up `My Documents` folder, which is full of different files - english and russian names. They are being sorted in this way:
01file.ext
apple.ext
banana.ext
...
yoshemito.ext
zero.ext
àðáóç.ext
áàðáàðèñ.ext
êðûæîâíèê.ext
...
÷åðåøíÿ.ext
ÿáëîêî.ext
(The second part lists russian files - in a right alphabetical order - for those people who can't see russian chars here in the forum)
Folders are being sorted the same way. Am I blind?
IMHO this is the most natural way I ever wanted my files to be sorted. Windows Explorer shows them 100% as TC. So, please, show me the problem?
No matter how many fish in the sea,
It'll be so empty, without me!
It'll be so empty, without me!
2slon:
Windows XP Professional Corp English
(don't care) Standards and Formats: Ukrainian
(don't care) Location: Ukraine
(don't care) Input Languages: English (Default), Russian, Ukrainian
(important!) Language for non-Unicode programs: Russian
TC fonts: (don't care) Trebuchet MS, (important!) Cyrillic script.
This settings also work fine on Win95OSR2, Win98SE, Win2000 Pro, both English AND Russian versions, TC from 4.5 to 6.0!
Never had a problem with sorting, this is your personal software misconfigration.
Windows XP Professional Corp English
(don't care) Standards and Formats: Ukrainian
(don't care) Location: Ukraine
(don't care) Input Languages: English (Default), Russian, Ukrainian
(important!) Language for non-Unicode programs: Russian
TC fonts: (don't care) Trebuchet MS, (important!) Cyrillic script.
This settings also work fine on Win95OSR2, Win98SE, Win2000 Pro, both English AND Russian versions, TC from 4.5 to 6.0!
Never had a problem with sorting, this is your personal software misconfigration.