[9.50b2+] Invalid file names encoding when unpacking RAR

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

[9.50b2+] Invalid file names encoding when unpacking RAR

Post by *Flint »

Here is the test archive (decode it from b64):

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="test.rar"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.rar"

UmFyIRoHAQAzkrXlCgEFBgAFAQGAgAA5CTq+NgIDC4AABIAAIAAAAACAAAAaUnVzc2lhbi3QoNGD
0YHRgdC60LjQuS50eHQKAwLtT/bs5snVAR13VlEDBQQA
1. Start TC with clean INI.
2. Go to the directory where you put the archive test.rar.
3. Press Alt+F9, leave all the options by default, click OK.
4. The unpacked file will be named Russian-ђгббЄЁ©.txt.

If you enter the archive, TC shows the file name correctly: Russian-Русский.txt. Also if you select this file and unpack it via F5, it will also receive the correct name. I could reproduce it only with Alt+F9.
Additionally, when I tick the "Unpack each archive into separate dir" option, in some of my experiments the file was also unpacked with the correct name, but not always. I failed to determine the exact conditions.
Also, if I unpack several archives (including test.rar), the names are also unpacked correctly.

Reproduced with TC 9.50β3 and later, 32- and 64-bit. OS: Windows 7.
The test archive was created in RAR5 format using WinRAR 5.61 x64.
In 9.50β1 and 2 the same archive is unpacked correctly. Looks like the unrar.dll/unrar64.dll update in β3 wasn't that healthy…
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [9.50b2+] Invalid file names encoding when unpacking RAR

Post by *ghisler(Author) »

Thanks, I can reproduce it. It's not caused by unrar dll, but by the new option to choose the name encoding in Alt+F9. This wasn't correctly sent to RAR the unpacker. Also it needs to be ignored when the file names are already stored as UTF-8.
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Re: [9.50b2+] Invalid file names encoding when unpacking RAR

Post by *Flint »

Seems fixed in β13.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
Post Reply