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

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

Moderators: sheep, Hacker, Stefan2, white

Post Reply
Slavic
Member
Member
Posts: 120
Joined: 2006-02-26, 15:41 UTC
Location: Moscow, Russia

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

Post by *Slavic » 2019-01-15, 19:06 UTC

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 8.1 x64, TC 9.50b2. Mobile: Pixel 3, Android 10, TC 3.0b12

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37766
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) » 2019-01-15, 20:35 UTC

I will check it, thanks.
Author of Total Commander
http://www.ghisler.com

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37766
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) » 2019-02-27, 16:25 UTC

This should be fixed in Total Commander 9.22 release candidate 1, please test it!
Author of Total Commander
http://www.ghisler.com

Slavic
Member
Member
Posts: 120
Joined: 2006-02-26, 15:41 UTC
Location: Moscow, Russia

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

Post by *Slavic » 2019-03-03, 11:34 UTC

Fixed in 9.22rc1, thanks!
Desktop: Windows 8.1 x64, TC 9.50b2. Mobile: Pixel 3, Android 10, TC 3.0b12

Post Reply