#2411 closed Bugs (fixed)
bzip2_compressor does not work with filtering_istream
Reported by: | Owned by: | Jonathan Turkanis | |
---|---|---|---|
Milestone: | Boost 1.37.0 | Component: | iostreams |
Version: | Boost 1.36.0 | Severity: | Showstopper |
Keywords: | filtering_istream, filtering_istreambuf, filtering_ostream, bzip2 | Cc: |
Description
Hi,
the filtering_istream has a severe problem when used with bzip2_compressor. This might be related to Ticket #2318.
The compressed data is withheld, leaving readers of the filtering_istream with 0 bytes.
When a filtering_ostream is used instead, compression works as expected.
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).
My platform is Ubuntu 8.04 64bit, gcc 4.2.3, using boost version 1.36, and bzip2 1.0.4.
Thanks for your efforts,
Roland
Attachments (2)
Change History (4)
by , 14 years ago
Attachment: | istream_bzip2_failure.cpp added |
---|
by , 14 years ago
Attachment: | istream_bzip2_success.cpp added |
---|
Using filtering_ostream instead of filtering_istream, it works as expected.
comment:1 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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)