[TC 11.00b7] External 7z packer do not compress if name start with a space

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Galizza
Member
Member
Posts: 167
Joined: 2018-09-07, 05:21 UTC

[TC 11.00b7] External 7z packer do not compress if name start with a space

Post by *Galizza »

 
Hi, external zip packer using 7Zip do not compress files or directories that start with a space, best regards.
  
TC 11.00b7 32Bits / Windows 10 Home 32Bits
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC 11.00b7] External 7z packer & space character

Post by *Horst.Epp »

Not confirmed
Tested with Total7zip plugin
and with 7zg.exe configured as internal Zip packer.
Works in 32bit and x64
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
Galizza
Member
Member
Posts: 167
Joined: 2018-09-07, 05:21 UTC

Re: [TC 11.00b7] External 7z packer do not compress if name start with a space

Post by *Galizza »

 
Bug doesn't appear if you select a directory for example \Docs\ that contain files or
subdirectories that start with a space character.

But if go inside \Docs\ and select all files on these directory, then bug appears when
you try to compress them.

Test were made with 7Zip 22.00 x86 using 7zG.exe configured as internal Zip packer.

When compressing using 7zG.Exe, 7zip shows an error message that translated from
Spanish says "System could not find specified file"

Best regards.
 
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC 11.00b7] External 7z packer do not compress if name start with a space

Post by *Horst.Epp »

Still not confirmed
with your scenario.
In my x64 OS the 7zip installation is also x64 of course.
But 32bit TC has no problems to use the x64 7zg.exe
configured as
"C:\Program Files\7-Zip\7zg.exe" -mcu=on
7z version is 23.0
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
Galizza
Member
Member
Posts: 167
Joined: 2018-09-07, 05:21 UTC

Re: [TC 11.00b7] External 7z packer do not compress if name start with a space

Post by *Galizza »

I have tested again after update 7zip to version 23.00 x86 and using a fresh Wincmd.ini but bug appears again, i don't have any 7zip plugin installed. Best regards.

TC 11.00b7 32Bits / Windows 10 22H2 32Bits
 
 
 
 
Last edited by Galizza on 2023-06-15, 14:15 UTC, edited 2 times in total.
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: [TC 11.00b7] External 7z packer do not compress if name start with a space

Post by *Stefan2 »

Galizza wrote: 2023-06-15, 12:09 UTC  Hi, external zip packer using 7Zip do not compress files or directories that start with a space, best regards.
 
Are you 100% sure it is a space?
hex 20
dec 32


or some other , unicode sign?


 
Galizza
Member
Member
Posts: 167
Joined: 2018-09-07, 05:21 UTC

Re: [TC 11.00b7] External 7z packer do not compress if name start with a space

Post by *Galizza »

Stefan2 wrote: 2023-06-15, 14:13 UTC [
Are you 100% sure it is a space?
hex 20
dec 32

or some other , unicode sign?
 
I have copied file & directory names to clipboard and pasted it on PsPad, after setting view on Hex edit mode it shows space character as 20, best regards.

TC 11.00b7 32Bits / Windows 10 22H2 32Bits
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC 11.00b7] External 7z packer do not compress if name start with a space

Post by *Horst.Epp »

My tests are made with dirs and files starting with real spaces and also contain spaces.
None of the tests failed.
Additionaly I tested with my button using the new TC date/time variable and 7z.exe.
This works to.

Code: Select all

TOTALCMD#BAR#DATA
"C:\Program Files\7-Zip\7z.exe"
a %T"%B"_%|$DATE:YMD_hm| @%UL -aoa -mmt -mx9 -ssw -stl -ssp -y -mx9
C:\Program Files\7-Zip\7zFM.exe
Pack selected


-1
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
Galizza
Member
Member
Posts: 167
Joined: 2018-09-07, 05:21 UTC

Re: [TC 11.00b7] External 7z packer do not compress if name start with a space

Post by *Galizza »

Horst.Epp wrote: 2023-06-15, 15:23 UTC My tests are made with dirs and files starting with real spaces and also contain spaces.
None of the tests failed.
Additionaly I tested with my button using the new TC date/time variable and 7z.exe.
This works to.

Code: Select all

TOTALCMD#BAR#DATA
"C:\Program Files\7-Zip\7z.exe"
a %T"%B"_%|$DATE:YMD_hm| @%UL -aoa -mmt -mx9 -ssw -stl -ssp -y -mx9
C:\Program Files\7-Zip\7zFM.exe
Pack selected


-1

Hi, i have tested

Code: Select all

TOTALCMD#BAR#DATA
"C:\Program Files\7-Zip\7z.exe"
a %T"%B"_%|$DATE:YMD_hm| @%UL -aoa -mmt -mx9 -ssw -stl -ssp -y -mx9
C:\Program Files\7-Zip\7zFM.exe
Pack selected


-1
and

Code: Select all

TOTALCMD#BAR#DATA
"C:\Program Files\7-Zip\7zG.exe"
a %T"%B"_%|$DATE:YMD_hm| @%UL -aoa -mmt -mx9 -ssw -stl -ssp -y -mx9
C:\Program Files\7-Zip\7zFM.exe
Pack selected


-1

with dirs and files starting with real spaces and also contain spaces, and both works perfectly. Also these one from my USERCMD.INI works ok too.

Code: Select all

[em_7zPackSelectedUltra]
Menu=7Zip Pack Selected Ultra
Cmd=C:\Program Files\7-Zip\7zG.exe
Param=a -mx9 -ssw "%T%O.7z" @%UL

Btw, any reason to repeat -mx9 switch twice on your button ?. Best regards.
 
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b7] External 7z packer do not compress if name start with a space

Post by *ghisler(Author) »

Confirmed. It looks like 7zip requires that file names starting with a space must be put in double quotes in the list file.
The same problem happens when deleting files from zip with external 7zip.
Author of Total Commander
https://www.ghisler.com
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC 11.00b7] External 7z packer do not compress if name start with a space

Post by *Horst.Epp »

Galizza wrote: 2023-06-15, 15:47 UTC
Btw, any reason to repeat -mx9 switch twice on your button ?. Best regards.
 
No, just a copy and paste error from the batch file used before TC 11.
Thanks for detecting it :)
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
Galizza
Member
Member
Posts: 167
Joined: 2018-09-07, 05:21 UTC

Re: [TC 11.00b7] External 7z packer do not compress if name start with a space

Post by *Galizza »

 
2ghisler(Author)

Tested on Tc 11.00b8, compression bug with file & directory names starting with a space seems fixed, but when deleting a file from zip with external 7zip this error message appears.

"Cannot find external pack program! You need to install and configure
an external packer to handle this specific archive"

Best regards.


TC 11.00b8 32Bits / Windows 10 22H2 32Bits
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b7] External 7z packer do not compress if name start with a space

Post by *ghisler(Author) »

Thanks for confirming the fix!

Please submit a new bug report with new details, I have no problems deleting from 7zip files, even when the file contains spaces.

Moderator message

Moved to fixed bugs.
Last edited by white on 2023-06-22, 10:13 UTC, edited 1 time in total.
Reason: fixed typo
Author of Total Commander
https://www.ghisler.com
Post Reply