Re: [Boost-bugs] [Boost C++ Libraries] #3853: bzip2_decompressor reads only one block of a pbzip2-created files

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3853: bzip2_decompressor reads only one block of a pbzip2-created files
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-01-27 17:50:50


#3853: bzip2_decompressor reads only one block of a pbzip2-created files
--------------------------------------------------+-------------------------
 Reporter: Darko Veberic <darko.veberic@…> | Owner: turkanis
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: iostreams
  Version: Boost 1.41.0 | Severity: Problem
 Keywords: |
--------------------------------------------------+-------------------------

Comment(by jeff.gilchrist@…):

 It seems like boost does not support multiple bz2 streams in a file. Both
 bzip2 and pbzip2 support reading multiple bz2 streams, so when you see the
 end of a bz2 sequence, you have check if it is the EOF as well, if not,
 look for another bz2 sequence and concatenate the decompressed results if
 one is found.

 So you can have files like:

 |bz1|

 or

 |bz1|bz2|bz3|bz4| etc...

 And you need to support both if you want to be compatible with bzip2 and
 pbzip2 since they both support this and it is a valid format.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3853#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC