Viewing a file with forbidden characters in names inside the archive
Moderators: Hacker, petermad, Stefan2, white
Viewing a file with forbidden characters in names inside the archive
1. Open any non-empty zip and add 4 colons in front of the filename. You can see that the 4th colon is automatically replaced by '_'.
2. By pressing Ctrl+Q, you can see the message "Error writing ...\Temp\_tc\$q\:_name.ext!". If F3, then "File not found!" will be added.
3. After clicking OK, a header with the original name :::_name.ext will appear in the target panel, but a question mark will be displayed along with the display of the content (including in a plugin).
4. When you press 4 in the target panel, the change to wlx plugins does not occur.
I think it's right to replace all such characters in the Temp folder for a successful browse.
2. By pressing Ctrl+Q, you can see the message "Error writing ...\Temp\_tc\$q\:_name.ext!". If F3, then "File not found!" will be added.
3. After clicking OK, a header with the original name :::_name.ext will appear in the target panel, but a question mark will be displayed along with the display of the content (including in a plugin).
4. When you press 4 in the target panel, the change to wlx plugins does not occur.
I think it's right to replace all such characters in the Temp folder for a successful browse.
Overquoting is evil! 👎
- ghisler(Author)
- Site Admin
- Posts: 50824
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Viewing a file with forbidden characters in names inside the archive
Sorry, it's not possible to view files with such forbidden names. Just rename them first.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Viewing a file with forbidden characters in names inside the archive
What do you say about this?
Fla$her wrote: 2024-10-02, 06:46 UTC 1. ...You can see that the 4th colon is automatically replaced by '_'.
I think it's right to replace all such characters in the Temp folder for a successful browse.
Overquoting is evil! 👎
- ghisler(Author)
- Site Admin
- Posts: 50824
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Viewing a file with forbidden characters in names inside the archive
Well, TC handles the case where a path contains a colon from a drive. That's usually one colon. It cannot currently handle arbitrary invalid names, sorry.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Viewing a file with forbidden characters in names inside the archive
And which packers add a letter with a colon? TC itself, with the first option marked, doesn't do this for a list with different drive letters.ghisler(Author) wrote: 2024-10-03, 07:13 UTC Well, TC handles the case where a path contains a colon from a drive. That's usually one colon.
If I was only interested in the current moment, then I would not have applied to this section. Therefore, I suggest improving the behavior and processing such characters fully not at the stage of renaming in the archive, but at the stage of unpacking to the Temp folder, given that such characters can get there from another file system.ghisler(Author) wrote: 2024-10-03, 07:13 UTCIt cannot currently handle arbitrary invalid names, sorry.
You can check the name with the RegExp: ^[A-z]:\\. If it does, then process it as it is now, if not, then replace it with '_' or delete.
Overquoting is evil! 👎
- ghisler(Author)
- Site Admin
- Posts: 50824
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Viewing a file with forbidden characters in names inside the archive
For example, 7zip with parameter -spf or WinRAR with parameter -ep3 .And which packers add a letter with a colon?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Viewing a file with forbidden characters in names inside the archive
It's clear. Will you be able to debug it with RegExp?
Overquoting is evil! 👎
- ghisler(Author)
- Site Admin
- Posts: 50824
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Viewing a file with forbidden characters in names inside the archive
No, sorry, I don't plan to find all possible invalid characters.
Moderator message from: ghisler(Author) » 2024-10-15, 10:06 UTC
Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com