bzip2 plugin

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
damjang
Senior Member
Senior Member
Posts: 215
Joined: 2003-10-09, 15:58 UTC
Contact:

bzip2 plugin

Post by *damjang »

Hi!
Recently I work alot with bzip2 plugin (bzip2 is the best packer for txt files). But I find that some packed files are unusable (cannot extract) cause of crc error. Is this a know bug and/or is possible to add in the plugin a crc check after compression (like in zip)?
As an info with the files I compress the best compression ratio is with compression lever 1 and not level 9...

damjang
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Test - OK

Post by *Clo »

2damjang
But I find that some packed files are unusable (cannot extract) cause of crc error.
:)   Hello!
• The CRC checksum doesn't work with a *.bz2 archive.
• The size of the packed file inside the *. bz2 is displayed instead the real non-packed size, when you open the archive by "Enter" or double-click.
• So, the CRC control is unusable at this. It displays a non-existent error always.

• I just tested to pack a *.TXT file >>> 36.3 KB
• I got a 13.3 KB *.txt.bz2 archive.
• Unpacking this archive, I got again the original *.TXT alright.
:mrgreen:  Kind regards
Clo
Last edited by Clo on 2004-02-05, 00:02 UTC, edited 1 time in total.
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
oblomov
Junior Member
Junior Member
Posts: 98
Joined: 2003-04-04, 15:41 UTC

Post by *oblomov »

There is a limitation in the BZ2 format: it doesn't store the original file size. There's nothing TC can do to fix this :)
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 04-02-2004 10:21:40 +0000 damjang wrote:

d> bzip2 is the best packer for txt files

Not exactly :). Try 7-zip with PPMd compression e.g. "-m0=PPMd:mem156m:o32" or RAR with "-m5".

d> But I find that some packed files are unusable (cannot
d> extract) cause of crc error.


Well, everything can happen...

d> is possible to add in the plugin a crc check after
d> compression (like in zip)?


You can test archive by hands actually - just hit "Alt"+"Shift"+"F9".

d> As an info with the files I compress the best compression
d> ratio is with compression lever 1 and not level 9...


Do not confirm.

BTW, there are two extensions associated with bzip2dll.wcx - ".bz2" and ".tar.bz2" so you can use the latter to compress more than one file at once.[/face]
damjang
Senior Member
Senior Member
Posts: 215
Joined: 2003-10-09, 15:58 UTC
Contact:

Post by *damjang »

[face=courier]d> bzip2 is the best packer for txt files

Not exactly :). Try 7-zip with PPMd compression e.g. "-m0=PPMd:mem156m:o32" or RAR with "-m5".[/face]


I MUST try this :D
[face=courier]d> But I find that some packed files are unusable (cannot
d> extract) cause of crc error.


Well, everything can happen...

d> is possible to add in the plugin a crc check after
d> compression (like in zip)?


You can test archive by hands actually - just hit "Alt"+"Shift"+"F9".
[/face]


Uau, I use Total commander a loot, but till now I don't "see" this function :oops: (and is also in menu!!!)

Thak you for all info...
damjang
Post Reply