Subject: [Boost-bugs] [Boost C++ Libraries] #4554: [MSVC] gzip_decompressor in filtering_istream returns empty strings | doesn't indicate EOF correctly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-08-17 18:39:49
#4554: [MSVC] gzip_decompressor in filtering_istream returns empty strings |
doesn't indicate EOF correctly
-------------------------------------------+--------------------------------
Reporter: ulidtko@⦠| Owner:
Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
Version: Boost 1.44.0 | Severity: Problem
Keywords: MSVC, filtering_istream, gzip |
-------------------------------------------+--------------------------------
The attached is a classical zcat example. It constructs a
`filtering_istream` out of `std::cin` and `gzip_decompressor()`, and
clones its contents to `std::cout`. Being built with GCC on unices, this
works flawlessly. Being build with MSVC 10, this fails on the attached
files.
With the first file, `1.gz`, the example enters infinite loop,
continuously printing empty lines on stdout; getline() returns empty
strings.
With the second file, `2.gz`, the example successfully dumps decompressed
content, but in the end of the stream enters infinite loop again, this
time for the reason of stream_in.eof() always returning false.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4554> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC