BZIP2 plugin problem - TAR decompression missing directories
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Where can I find a description of the pbzip2 format? It seems to be different from native bz2 format, that's why RAR and TC cannot unpack the other parts...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Unfortunately ther is no documentation of the used file format. I would have to wade to some unknown source code to find out what they are doing, but might miss half of the functions...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Unfortunately the 7zip format changes much more quickly than there are new versions of TC, so the support would always be outdated. Also I don't want to include a 700MB DLL just for 7zip...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Unit error ?
2ghisler(Author)
Good evening,
- Hence, less than 1 MiB, not a so big deal finally in a CD…
VG
Claude
Clo

…Also I don't want to include a 700MB DLL just for 7zip...

… is that I've here (just upgraded yesterday to test this current issue)…7z.dll 709,0 Kio 03/02/2009 09:21 -a--
- Hence, less than 1 MiB, not a so big deal finally in a CD…

Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
- Samuel
- Power Member
- Posts: 1930
- Joined: 2003-08-29, 15:44 UTC
- Location: Germany, Brandenburg an der Havel
- Contact:
Does it also change the API for accessing the extract & pack operations?Unfortunately the 7zip format changes much more quickly than there are new versions of TC, so the support would always be outdated. Also I don't want to include a 700MB DLL just for 7zip...
For me it looks mainly like fixes.
700 MB?


You may just add support, when the user downloaded the dll and it is in the directory of TC.
Last edited by Samuel on 2009-10-22, 16:16 UTC, edited 1 time in total.
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
What I gathered from the response from the WinRar dev pbzip2 creates a file that can contain multiple bzip streams.
So instead of stopping decompression when the first stream is done, check if there is another stream first.
Linux's bzip2.exe and the likewise compiled bzip2.exe in GNU's UnxUtils (from 2003) properly handles (decompresses) a pbzip2's created file.
So instead of stopping decompression when the first stream is done, check if there is another stream first.
Linux's bzip2.exe and the likewise compiled bzip2.exe in GNU's UnxUtils (from 2003) properly handles (decompresses) a pbzip2's created file.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
The CPP\7zip\Archive\IArchive.h file seems pretty consistent between versions.Samuel wrote:Does it also change the API for accessing the extract & pack operations?
For me it looks mainly like fixes.
Concerning the 700kb: Considering the number of additional formats it brings with it I think it's well worth it. For some formats (like UDF or WIM) there isn't even a packer plugin available.
I even would settle for an external packer plugin which uses the original dll so it could be swapped out.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I have created an updated version of my bzip2 plugin which should support such multi-stream bzip2 files now. Please test it!
Plugin:
https://plugins.ghisler.com/beta/bzipplug12.zip
Source code:
https://plugins.ghisler.com/beta/bzipplug12_src.zip
Plugin:
https://plugins.ghisler.com/beta/bzipplug12.zip
Source code:
https://plugins.ghisler.com/beta/bzipplug12_src.zip
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com