Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 97162 invoked from network); 12 Feb 2009 10:30:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 10:30:31 -0000 Received: (qmail 30893 invoked by uid 500); 12 Feb 2009 10:30:30 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 30484 invoked by uid 500); 12 Feb 2009 10:30:29 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 30473 invoked by uid 99); 12 Feb 2009 10:30:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 02:30:29 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 10:30:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8D3A9234C48C for ; Thu, 12 Feb 2009 02:29:59 -0800 (PST) Message-ID: <2125494051.1234434599577.JavaMail.jira@brutus> Date: Thu, 12 Feb 2009 02:29:59 -0800 (PST) From: "Stefan Bodewig (JIRA)" To: issues@commons.apache.org Subject: [jira] Resolved: (SANDBOX-285) commons-compress fails to read bzip2 file create with bzip2 unix cmdline tool In-Reply-To: <740467104.1234372979677.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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.