BZIP2 plugin problem - TAR decompression missing directories

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

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

Post by *ghisler(Author) »

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
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Christian,
http://compression.ca/pbzip2/

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

What about native support for 7zip?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Unit error ?

Post by *Clo »

2ghisler(Author)

:) Good evening,
…Also I don't want to include a 700MB DLL just for 7zip...
:shock:
7z.dll 709,0 Kio 03/02/2009 09:21 -a--
… is that I've here (just upgraded yesterday to test this current issue)…

- Hence, less than 1 MiB, not a so big deal finally in a CD…

:mrgreen: VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

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...
Does it also change the API for accessing the extract & pack operations?
For me it looks mainly like fixes.

700 MB? :-o :-D
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.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

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.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1050
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

Samuel wrote:Does it also change the API for accessing the extract & pack operations?
For me it looks mainly like fixes.
The CPP\7zip\Archive\IArchive.h file seems pretty consistent between versions.

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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
Author of Total Commander
https://www.ghisler.com
Post Reply