commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Bodewig (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (SANDBOX-285) commons-compress fails to read bzip2 file create with bzip2 unix cmdline tool
Date Thu, 12 Feb 2009 10:29:59 GMT

     [ https://issues.apache.org/jira/browse/SANDBOX-285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stefan Bodewig resolved SANDBOX-285.
------------------------------------

    Resolution: Fixed

I used three separate reads and character comparisions instead of byte[] -> string to avoid
encoding issues and also fixed the outputstream in svn revision 743678

> 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.


Mime
View raw message