Bug - TC does not sort cyrillic names

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
slon
Junior Member
Junior Member
Posts: 17
Joined: 2003-02-28, 18:23 UTC

Bug - TC does not sort cyrillic names

Post by *slon »

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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
User avatar
slon
Junior Member
Junior Member
Posts: 17
Joined: 2003-02-28, 18:23 UTC

Post by *slon »

If cyrillic is your main language
No, my main language is English. People with main language cyrillic do not have such problem.
TC cannot currently sort Unicode strings from different codepages.
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
Is it a big problem to sort it right?
China
Junior Member
Junior Member
Posts: 8
Joined: 2003-11-27, 10:44 UTC
Location: Kiev, Ukraine
Contact:

Post by *China »

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.

consider what papa says :)
No matter how many fish in the sea,
It'll be so empty, without me!
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

Christian, as far i understand TC sorts filenames according to the current collating sequence, right? May be it's possible to add an option to sort filenames in the alphabetic order?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
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.
Author of Total Commander
https://www.ghisler.com
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

ghisler(Author) wrote:Then why not use one of these? TC isn't the tool in all situations!
Christian,
Bad suggestion :-(
TC is the tool in all situation (if it isn't today it will be tomorrow) :-)
We all here believe in it.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
WatchUer
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-22, 10:46 UTC
Location: China

Post by *WatchUer »

djk wrote:
ghisler(Author) wrote:Then why not use one of these? TC isn't the tool in all situations!
Christian,
Bad suggestion :-(
TC is the tool in all situation (if it isn't today it will be tomorrow) :-)
We all here believe in it.
Exact! :)
User avatar
slon
Junior Member
Junior Member
Posts: 17
Joined: 2003-02-28, 18:23 UTC

Post by *slon »

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
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.
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?
Then why not use one of these? TC isn't the tool in all situations!
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.
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

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.
No, it's not an ordinary file list, since some of the files use unicode filenames, which makes things more compicated as a programmer.
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.
China
Junior Member
Junior Member
Posts: 8
Joined: 2003-11-27, 10:44 UTC
Location: Kiev, Ukraine
Contact:

Post by *China »

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?
No matter how many fish in the sea,
It'll be so empty, without me!
User avatar
slon
Junior Member
Junior Member
Posts: 17
Joined: 2003-02-28, 18:23 UTC

Post by *slon »

Cnina
Hmmmm... Interesting
What version of Windows do you have?
Is it English' o Russian?
What settings do you have in Control Panel -Regional & Language Options in Tab "Regional Options" and in Tab "Advanced"?
Also, what fonts do you use for TC panels?
China
Junior Member
Junior Member
Posts: 8
Joined: 2003-11-27, 10:44 UTC
Location: Kiev, Ukraine
Contact:

Post by *China »

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.
User avatar
slon
Junior Member
Junior Member
Posts: 17
Joined: 2003-02-28, 18:23 UTC

Post by *slon »

2 China
Interesting
I have the same settings except
Standards and Formats: Ukrainian
I use English language and this is, probably, the main problem.
Could you try to set yours to English and see what happend?
Txs
sheppaul
Member
Member
Posts: 134
Joined: 2003-12-05, 07:59 UTC

Post by *sheppaul »

Is Tcmd not unicode-based program?

If then it need to make two version of Tcmd.
: ANSI Version for win98..
: Unicode Version for NT,XP..
Only using TCMD x64. :)
Post Reply