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


Hi,

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

See also http://svn.boost.org/trac/boost/ticket/2318, 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 :-)).

Regards,

Roland

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]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net