cm_LoadSelectionFromClip does not support the Chinese charac

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
yahuu
Member
Member
Posts: 123
Joined: 2015-01-15, 03:19 UTC

cm_LoadSelectionFromClip does not support the Chinese charac

Post by *yahuu »

This command does not support the Chinese character "一" and "开" at the beginning of the words

for example:
一键加速
一淘
一粒
开水
开放
开心
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for your report, I could reproduce the problem.
Author of Total Commander
https://www.ghisler.com
User avatar
yahuu
Member
Member
Posts: 123
Joined: 2015-01-15, 03:19 UTC

Post by *yahuu »

Thank you, there may be more chinese characters, I only found two...
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I found the problem - it happens because in this case the first BYTE of the Unicode string is 0. The function accepts Unicode and ANSI text, and only checked the first byte whether it was 0, not the first 2 bytes in case of Unicode...
Author of Total Commander
https://www.ghisler.com
User avatar
yahuu
Member
Member
Posts: 123
Joined: 2015-01-15, 03:19 UTC

Post by *yahuu »

└(^o^)┘
Thank You !
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should be fixed in TC 8.52 beta 1, can anyone try it please?
Author of Total Commander
https://www.ghisler.com
sky66
Member
Member
Posts: 176
Joined: 2014-02-22, 08:44 UTC

Post by *sky66 »

This was fixed in TC 8.52 beta 1.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply