Author Topic: Weird file names display  (Read 42 times)

nietrupek

  • Junior Member
  • **
  • Posts: 15
    • View Profile
Weird file names display
« on: Yesterday at 19:53:58 »
Attached I send MC's display of some "exotic" filenames (attachements, left panel). These files were created by Thunderbird, they are spam mails saved using EML format. System: Windows 10.

It is a security risk if "something" in filenames is able to manipulate MC's behaviour.

BTW, your built-in zip functionality changes filenames (2nd attachment, right panel). If it is documented and user may switch this feature on/off, then it is OK. If not, it is a bug.
For reference, the same files packed using external 7z application keep original file names intact (1st attachment, right panel).

ADDED: Sorry, I didn't see "[BUG] Unicode NOT work" topic, so this is basically a duplicate of it. But maybe attachments will be helpful. I am using one of typical Windows fonts (Consolas), so it is not the cause of the problem.
« Last Edit: Yesterday at 20:01:29 by nietrupek »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4840
    • View Profile
    • Multi Commander
Re: Weird file names display
« Reply #1 on: Today at 07:41:23 »
Unicode suport all kind of strange things like emoji and what ever..  MC has no control over it. I see any security risk. It not like it can execute any code.
MC just tell window to draw the unicode string. MC does not process., It is using Window built in support for drawing unicode strings.

You can't use zip for unicode filenames, zip is an legacy and old format. normally zip till convert filename to 7/8bit for current code page used, or to UTF-8 if enabled for zip. But that is only if the conversion from Windows Unicode to UTF8 will work and there are cases where it does not work so well. 7Zip support unicode much better.

Also it depends on what font is used and if it support all the characters included..  Unicode has over 297 000 characters.. and i don't think there is a font that support all of that




nietrupek

  • Junior Member
  • **
  • Posts: 15
    • View Profile
Re: Weird file names display
« Reply #2 on: Today at 09:15:34 »
MC just tell window to draw the unicode string. MC does not process., It is using Window built in support for drawing unicode strings.

So the problem is outside of MC's control, somewhere in external library.
And today, the same files are displayed properly. And my PC wasn't even turned off since yesterday...

You can't use zip for unicode filenames, zip is an legacy and old format. normally zip till convert filename to 7/8bit for current code page used, or to UTF-8 if enabled for zip.

Thanks for the explanation. I had no idea that zip is outdated.