[x64 Beta 22] Broken unicode filename in ZIP, RAR

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
pulbitz
Junior Member
Junior Member
Posts: 52
Joined: 2009-06-05, 12:19 UTC

[x64 Beta 22] Broken unicode filename in ZIP, RAR

Post by *pulbitz »

I'm sorry. I don't speak English very well.

totalcmd beta 22 x64 verision is broken unicode filename in ZIP, RAR.
32bit version is OK.

sample files (test.rar, test.zip)
http://www.mediafire.com/?76okqkfmf6isr1s
http://www.mediafire.com/?cc7s7vjcu8lwapc

Clipboard-1.png:[img]http://imageupload.org/thumb/thumb_195365.png[/img]

original filename: 文字ç‰.txt
filename in x64: ________.txt
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, I could reproduce the problem. It's a bug in the Free Pascal compiler copying a widechar character (<255) to a char variable.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14810
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Hmm, I get varius results from the two test files

TC 8.0b22 32bit under WinXP 32bit
http://madsenworld.dk/tcmd/unicodearc1.png

TC 8.0b22 32bit under Win 7 x64
http://madsenworld.dk/tcmd/unicodearc2.png
(it looks the same in TC 7.56a under Win 7 x64)

TC 8.0b22 64bit under Win 7 x64
http://madsenworld.dk/tcmd/unicodearc3.png

The file 文字ç‰.txt from text.rar can NOT be unpacked with TC 8.0b22 x64. Message "Disk read error!".

I am using standard Microsoft Sans Serif font in all tree versions of TC.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

32bit on Win7 x64 shows the right thing. The name seems to contain some unprintable Unicode characters which Windows XP isn't able to handle, but Windows 7 can. XP shows them as squares, which it always does with unknown Unicode characters.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14810
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Hmm - I can understand that the dispaly can be different for different OS'es, but it is also different for the same OS for 32bit and 64bit TC.
Last edited by petermad on 2012-03-11, 16:56 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I can only say that these unprintable characters are not displayed on Windows 7 although they are definitely there.
Author of Total Commander
https://www.ghisler.com
pulbitz
Junior Member
Junior Member
Posts: 52
Joined: 2009-06-05, 12:19 UTC

Post by *pulbitz »

Confirmed fixed in beta 23!
User avatar
petermad
Power Member
Power Member
Posts: 14810
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

In TC8.0b23 x64 under Win 7 the content of the two test files is now shown the same way as in the 32bit version < http://madsenworld.dk/tcmd/unicodearc2.png >, and it is shown the same way in the zip and the rar file.

Under Win XP 32 bit the content is still shown in a different way < http://madsenworld.dk/tcmd/unicodearc1.png >

I can now also unpack from the rar file.

So I'd say the bug is fixed :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Great, thanks!

2petermad
The 32-bit and 64-bit versions now show the same name on XP, although it differs from what Windows 7 shows. These characters shown as squares are not displayed on Windows 7, but they are definitely there.
Author of Total Commander
https://www.ghisler.com
Post Reply