[IoStreams]: bzip2_compressor not working?
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.
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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (1)
-
Roland Bock