[
https://issues.apache.org/jira/browse/SANDBOX-285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12672939#action_12672939
]
Stefan Bodewig commented on SANDBOX-285:
----------------------------------------
The reason for this is the Ant heritance, in Ant it is the <bunzip> task that
reads the first two bytes and validates they are "B" and "z" before handing the
rest off to the BZip-Stream.
I don't reaclly why it has been implemented that way, but it is certainly too
late to change it in Ant - will fix commons-compress.
> commons-compress fails to read bzip2 file create with bzip2 unix cmdline tool
> -----------------------------------------------------------------------------
>
> Key: SANDBOX-285
> URL: https://issues.apache.org/jira/browse/SANDBOX-285
> Project: Commons Sandbox
> Issue Type: Bug
> Components: Compress
> Affects Versions: Nightly Builds
> Environment: Unix
> Reporter: Ingo Rockel
> Assignee: Stefan Bodewig
> Attachments: bla.txt.bz2, BZip2CompressorInputStream.java.patch
>
>
> Commons-compress fails to read bzip2 files created with the bzip2 unix
> cmdline tool because it incorrectly checks for 'h' as first char in stream,
> the magic number according to http://en.wikipedia.org/wiki/Bzip2 is 'BZh'.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.