ZIP packer ignores Unicode names in a dir without Admin rights

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: sheep, Hacker, Stefan2, white

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

ZIP packer ignores Unicode names in a dir without Admin rights

Post by *Slavic » 2019-11-04, 15:47 UTC

When we pack the files with non-English letters in the file name (e.g. Cyrillic), TC should pack them according to the setting in Configuration, by default it asks which method of packing these names to use. However, if the directory, where such files are placed, requires the Admin access and we try to pack the files from outside of this directory (like a whole directory), ZIP packer doesn't check these names, cannot detect non-English characters and packs the names with underscores "_" or questions "?" instead.

Hint: these dirs can be easily seen by context menu: the "normally" accessible dirs show the full-size context menu with "Open" and "View (Lister)" right below the name. Dirs which have been created under another account and so require the Admin access for most operations, have the shortened context menu without these menu items. When you attempt to copy the whole dir, TC asks for Admin rights. However, TC doesn't ask such rights for packing, and the packing itself works well.

Reproducing this bug may be a bit uneasy.
1) Switch to another account, create a dir (English letters are OK) and copy inside some files with non-English names.
2) Switch back to usual account and check the context menu of this dir. It should be shortened (!).
3) When inside this dir, attempt to pack the files. TC will show the dialog with info about Unicode names. Select "Store as UTF-8".
4) Go one level up (cd..) and try to pack the whole dir with files. TC will pack them without this dialog, and non-English names will ignore Unicode.

This bug doesn't occur if we start TC as Admin (obviously).

I hope this can be fixed because the packer is able to ask for UTF-8 when inside. Apparently the problem is in the limited scope of name checker, while TC file lister, even without Admin rights, does have the needed scope.
Desktop: Windows 8.1 x64, TC 9.50b8. Mobile: Pixel 3, Android 10, TC 3.0b12

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38395
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: ZIP packer ignores Unicode names in a dir without Admin rights

Post by *ghisler(Author) » 2019-11-12, 19:46 UTC

Unfortunately I cannot fix this - at the time when TC checksfor Unicode names, it doesn't yet have the right to enter that subfolder.
Author of Total Commander
http://www.ghisler.com

Post Reply