Testing a ZIP after packing shows non-decoded UTF-8

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Slavic
Senior Member
Senior Member
Posts: 290
Joined: 2006-02-26, 15:41 UTC
Location: Montenegro

Testing a ZIP after packing shows non-decoded UTF-8

Post by *Slavic »

This is merely a cosmetic bug rather than a serious functional one, but I hope it should be easy to fix.

If we want to pack a file (or a lot of files) with the names different from current system code page, the Commander warns us with the dialogue that other ZIP packers may not correctly unpack such archive and suggests several options, by default "Store these names as UTF-8 Unicode". Usually, despite the warning, the files are being packed properly and I didn't have any problem with unpacking or viewing in Windows Explorer (Windows 7 and later).

Immediately after packing TC performs the CRC check. In this dialogue it doesn't show the file names correctly, non-decoded UTF-8 characters are shown instead. Contrary, if we test this just created archive "Files -> Test Archive(s)", then the UTF-8 names are shown properly. Apparently a bug occurs only during the test immediately after archiving.

Reproducing is simple: take a large file like 100 MB, rename it using foreign words, different from your code page, e.g. "Длинное_имя_файла" (Long_file_name in Russian) and pack.
Desktop: Windows 11 Pro 23H2, TC 11.03(RC). Mobile: Pixel 5a, Android 14, TC 3.42b5
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Testing a ZIP after packing shows non-decoded UTF-8

Post by *ghisler(Author) »

I will check it, thanks.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Testing a ZIP after packing shows non-decoded UTF-8

Post by *ghisler(Author) »

This should be fixed in Total Commander 9.22 release candidate 1, please test it!
Author of Total Commander
https://www.ghisler.com
Slavic
Senior Member
Senior Member
Posts: 290
Joined: 2006-02-26, 15:41 UTC
Location: Montenegro

Re: Testing a ZIP after packing shows non-decoded UTF-8

Post by *Slavic »

Fixed in 9.22rc1, thanks!
Desktop: Windows 11 Pro 23H2, TC 11.03(RC). Mobile: Pixel 5a, Android 14, TC 3.42b5
Post Reply