Subject: Re: [boost] [iostreams] 1.41 gzip filter regression
From: Michael Dickey (mike_at_[hidden])
Date: 2009-12-03 19:22:57
For what it's worth, I seem to have encountered the same bug with Boost
1.41. Strangely enough, our gzip unit tests work fine on OSX with 1.41, but
fail on CentOS 5 with "gzip errors." Same tests work fine on all platforms
with 1.37 through 1.40. I mention this in case it might have something to
do with the version of zlib that ships with CentOS 5? Alexander, which
platform are you using?
On 12/2/09 1:59 AM, Alexander Arhipenko wrote:
In 1.41 we are experiencing regression in boost::iostreams::gzip_decompressor.
Almost 50% percents of our test *.gz files failed to decompress.
Following code snippet usually throws gzip error:
std::ifstream f(n, std::ios_base::in | std::ios_base::binary);
std::cerr<<"cant' open "<<n<<'\n';
namespace io = boost::iostreams;
std::copy(b, e, std::ostream_iterator<char>(std::cout) );
Maybe that is caused by incorrect api usage.
In this case, sorry for the noise in advance.
I've attached minimal example that reproduces the issue.
Build showfile executable and run ./showfile myfile.odt.bz2.gz > result.
You should have 'error: gzip error' on stderr.
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boo