Boost logo

Boost Users :

Subject: Re: [Boost-users] [IoStreams]: bzip2_compressor not working?
From: Roland Bock (rbock_at_[hidden])
Date: 2008-10-14 19:48:50


found the culprit and a workaround: when using filtering_ostream instead
of filtering_istream, it works as expected.

See also, originally
reported by guy_tannenbaum. It shows very weird behavior for
zlib_compressor under rare circumstances. I found that it also can be
worked around by using filtering_ostream instead of filtering_istream.

I am going to file a ticket for the bzip2 problem, too, since it seems
to be easier to reproduce (at least on my machine :-)).



Roland Bock wrote:
> Hi,
> does the attached program write something to stdout for anyone?
> It should print out the bzip2-compressed version of the string
> "Original". It compiles fine but prints out exactly nothing.
> My platform is Ubuntu 8.04 64bit, gcc 4.2.3, using boost version 1.36,
> and bzip2 1.0.4.
> Any ideas?
> Thanks in advance,
> Roland
> PS: The equivalent code works fine for gzip and zlib compression
> PPS: bzip2 itself works fine, too.
> ------------------------------------------------------------------------
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at