Boost C++ Libraries: Ticket #2411: bzip2_compressor does not work with filtering_istream https://svn.boost.org/trac10/ticket/2411 <p> Hi, </p> <p> the filtering_istream has a severe problem when used with bzip2_compressor. This might be related to Ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2318" title="#2318: Bugs: A particular string for which compressing/uncompressing using ... (closed: fixed)">#2318</a>. </p> <p> The compressed data is withheld, leaving readers of the filtering_istream with 0 bytes. </p> <p> When a filtering_ostream is used instead, compression works as expected. </p> <p> I am going to attach two files, one showing the code which does not work for me at all (using filtering_istream), the other which works as expected (using filtering_ostream). </p> <p> My platform is Ubuntu 8.04 64bit, gcc 4.2.3, using boost version 1.36, and bzip2 1.0.4. </p> <p> Thanks for your efforts, </p> <p> Roland </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2411 Trac 1.4.3 rbock@… Wed, 15 Oct 2008 00:11:06 GMT attachment set https://svn.boost.org/trac10/ticket/2411 https://svn.boost.org/trac10/ticket/2411 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">istream_bzip2_failure.cpp</span> </li> </ul> <p> This example demonstrates filtering_istream not releasing any bzip2-compressed data (at least on my machine, the reported length of the compressed string is 0) </p> Ticket rbock@… Wed, 15 Oct 2008 00:11:57 GMT attachment set https://svn.boost.org/trac10/ticket/2411 https://svn.boost.org/trac10/ticket/2411 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">istream_bzip2_success.cpp</span> </li> </ul> <p> Using filtering_ostream instead of filtering_istream, it works as expected. </p> Ticket Steven Watanabe Mon, 14 Jun 2010 23:36:47 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2411#comment:1 https://svn.boost.org/trac10/ticket/2411#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/62957" title="Avoid calling BZ2_bzcompress after it has said that it's done. Fixes ...">[62957]</a>) Avoid calling BZ2_bzcompress after it has said that it's done. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2411" title="#2411: Bugs: bzip2_compressor does not work with filtering_istream (closed: fixed)">#2411</a>. (<a class="changeset" href="https://svn.boost.org/trac10/changeset/62952" title="Don't end the stream produced by a reading through a symmetric_filter ...">[62952]</a> is also necessary to make the test case from the ticket work.) </p> Ticket rbock@… Tue, 15 Jun 2010 06:31:49 GMT <link>https://svn.boost.org/trac10/ticket/2411#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2411#comment:2</guid> <description> <p> Thanks for fixing these tickets! </p> </description> <category>Ticket</category> </item> </channel> </rss>