[bug] verify checksum error when filename contains certain Chinese characters

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
xbeta
Junior Member
Junior Member
Posts: 25
Joined: 2006-01-03, 11:28 UTC
Location: China PR
Contact:

[bug] verify checksum error when filename contains certain Chinese characters

Post by *xbeta » 2019-02-12, 15:57 UTC

I understand unicode for TC is a hard work.
After a user in Chinese forum reported this issue, I tested it and report it here.

Create any text file named as origin-系统.txt
and then create checksum,
and then verify them.
TC will show error.

Not all filename contains Chinese have this error.
I guess the program confused in different txt encode.

Image: http://ww1.sinaimg.cn/large/46dac66fgy1g042qsl28fj20pu0ivgm7.jpg
files in a zip: http://att.newsmth.net/att.php?s.837.57231.1700.zip

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36774
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [bug] verify checksum error when filename contains certain Chinese characters

Post by *ghisler(Author) » 2019-02-14, 10:54 UTC

The problem is the following: TC uses ANSI encoding with local codepage as long as all characters of the file names are available in the current codepage. So if you have Chinese codepage and Chinese names, TC will use ANSI encoding.

However, in your case, the resulting codes CF B5 CD B3 are also valid UTF-8 characters. So when reading the file, TC sees a valid UTF-8 encoded file and tries to use UTF-8 names.

Unfortunately I don't currently see any solution to this problem, sorry. I think the best idea would be to implement your suggestion to enable UTF-8 encoding manually.
Author of Total Commander
http://www.ghisler.com

User avatar
Usher
Senior Member
Senior Member
Posts: 232
Joined: 2011-03-11, 10:11 UTC

Re: [bug] verify checksum error when filename contains certain Chinese characters

Post by *Usher » 2019-02-14, 13:51 UTC

2ghisler(Author)There is already similar solution for filenames in ZIP - let user decide which option to choose or ask always…
Regards from Poland
Andrzej P. Wozniak

Post Reply