TC7.5b4: wrong sorting of Chinese in tree view

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
yong
Member
Member
Posts: 116
Joined: 2009-05-20, 07:23 UTC

TC7.5b4: wrong sorting of Chinese in tree view

Post by *yong »

TC 7.5 sorts Chinese characters in a bizarre order in both tree view and separate trees when the sorting method is set to pronunciation in the Windows Regional and Language settings, but the file panels in both brief view and full view work well.

Strangely TC 7.04a doesn't have this problem. Perhaps Christian could could take care to look into this problem before the next beta release?
yong
Member
Member
Posts: 116
Joined: 2009-05-20, 07:23 UTC

Post by *yong »

OK, I see what's causing this problem.

By default, the Simplified Chinese Windows sorts all Chinese file/folder names in the pinyin order, this is identical to TC's two "alphabetical" sort methods, and Chinese users are accustomed to this behavior. However, TC 7.5 only applies these "alphabetical" sort methods to the file panels, leaving the tree views sorted by "numeric character code". So when the user changes the sort method in Configure - Display - Sort method, only the file panels change accordingly, the tree views are unchanged.

TC 7.04a behaves even more unreasonably. None of these sort methods has any effect on either file panels or tree views. They are always sorted by the pinyin or "alphabetical" order.

I hope that all file panels and tree views be sorted in the same method set in the configuration dialog box, which should default to "alphabetical".
yong
Member
Member
Posts: 116
Joined: 2009-05-20, 07:23 UTC

Post by *yong »

Sorry for the follow up post, but this time some good news...

TC 7.5's breadcrumb bar and internal command 500 (cm_CDTree) both work fine with sort settings, they always sort directories in the method set forth in the configuration dialog. Hope the next release could bring file panels and tree views in line with the breadcrumb bar.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I'm aware that the tree cannot currently use the chosen selection method, it was causing problems because of the backslashes. I will try to find a solution, but cannot promise anything yet, sorry.
Author of Total Commander
https://www.ghisler.com
yong
Member
Member
Posts: 116
Joined: 2009-05-20, 07:23 UTC

Post by *yong »

This problem seems to be more complicated than what it first looks like. I tried TC 7.5pb4 and TC 7.04a on Windows XP, Vista and 7 and they behaved differently on these Windows platforms:

TC 7.04a (on all three Windows platforms):

brief view: always sort Chinese names by pinyin
full view: always sort Chinese names by pinyin
tree view: always sort Chinese names by pinyin
separate tree: always sort Chinese names by pinyin
CD Tree: always sort Chinese names by pinyin
sort method: totally disregard method changes

TC 7.5 pb4 (on Windows XP):
brief view: sort Chinese names by sort method
full view: sort Chinese names by sort method
tree view: always sort Chinese names by code number
separate tree: always sort Chinese names by code number
CD Tree: sort Chinese names by sort method
sort method: partially respond to method changes

TC 7.5 pb4 (on Windows Vista & 7):
brief view: always sort Chinese names by code number
full view: always sort Chinese names by code number
tree view: always sort Chinese names by code number
separate tree: always sort Chinese names by code number
CD Tree: always sort Chinese names by code number
sort method: totally disregard method changes

For the time being, I think reverting to the behavior of v7.04 looks like a workable solution, it gives Simplified Chinese users the look and feel they are used to, though this may break some internal mechanisms.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I could reproduce and fix the problem with the tree view now.

What do you mean with "sort method"?
Author of Total Commander
https://www.ghisler.com
yong
Member
Member
Posts: 116
Joined: 2009-05-20, 07:23 UTC

Post by *yong »

Configuration dialog - Display - Sort method
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I see - the sort method in the normal file lists is updated immediately, at least in my tests. For example, switch from the default sort order (alphabetical with accents) to "strictly by numeric code". TC will resort the list immediately. However, the tree will only be updated when it is re-read, e.g. when you expand a new branch.
TC 7.5 pb4 (on Windows Vista & 7):
brief view: always sort Chinese names by code number
full view: always sort Chinese names by code number
I cannot confirm this problem on Vista, the directories are sorted correctly by PinYin or Stroke count, depending on what I choose in the control panel...
Author of Total Commander
https://www.ghisler.com
yong
Member
Member
Posts: 116
Joined: 2009-05-20, 07:23 UTC

Post by *yong »

I cannot confirm this problem on Vista, the directories are sorted correctly by PinYin or Stroke count, depending on what I choose in the control panel...
Sorry, it's my fault. I missed a setting on Vista and Win 7, it's the current format (Vista) or format (Win 7) on the formats page. This setting needs to be Chinese (Simplified, PRC) to sort files by Pinyin, otherwise the files are sorted by character code.

Here is a list of the settings I'm using on my Windows test beds, for your reference:

Windows 7 (Build 7127, English version):

Control Panel - Clock, Language, and Region - Region and Language - Formats - Format: Chinese (Simplified, PRC)
Control Panel - Clock, Language, and Region - Region and Language - Formats - Additional settings - Sorting - Pronunciation
Control Panel - Clock, Language, and Region - Region and Language - Location - Current location: United States
Control Panel - Clock, Language, and Region - Region and Language - Administrative - Language for non-Unicode programs - Chinese (Simplified, PRC)

Windows Vista (English version):

Control Panel - Clock, Language, and Region - Regional and Language Options - Formats - Current format: Chinese (Simplified, PRC)
Control Panel - Clock, Language, and Region - Regional and Language Options - Formats - Customize this format - Sorting - Pronunciation
Control Panel - Clock, Language, and Region - Regional and Language Options - Location - Current location: United States
Control Panel - Clock, Language, and Region - Regional and Language Options - Administrative - Language for non-Unicode programs - Chinese (Simplified, PRC)

Windows XP (English & Simplified Chinese versions):

Control Panel - Regional and Language Options - Regional Options - Standards and formats - Chinese (PRC)
Control Panel - Regional and Language Options - Regional Options - Standards and formats - Customize - Sorting - Pronunciation
Control Panel - Regional and Language Options - Regional Options - Location - China
Control Panel - Regional and Language Options - Advanced - Language for non-Unicode programs - Chinese (PRC)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This setting needs to be Chinese (Simplified, PRC) to sort files by Pinyin
I can confirm this - the Chinese sorting cannot be set here when the setting is English or German either.

So I will fix just the tree problem in beta 5.
Author of Total Commander
https://www.ghisler.com
yong
Member
Member
Posts: 116
Joined: 2009-05-20, 07:23 UTC

Post by *yong »

Fixed in public beta 5. Thank you!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Great, thanks, also for reporting it!
Author of Total Commander
https://www.ghisler.com
Post Reply