Re: [Boost-bugs] [Boost C++ Libraries] #5237: filtering_ostream produce incorrect empty files with gzip_compressor and other filters

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5237: filtering_ostream produce incorrect empty files with gzip_compressor and other filters
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-02 01:48:34


#5237: filtering_ostream produce incorrect empty files with gzip_compressor and
other filters
-------------------------------+-----------------------
  Reporter: come.raczy@… | Owner: turkanis
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: iostreams
   Version: Boost 1.44.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+-----------------------

Comment (by anonymous):

 Fixed in commit
 [https://github.com/boostorg/iostreams/commit/b8db28c0ac42cb40fd78de45ac1217f196e3af4f
 b8db28c0ac42cb40fd78de45ac1217f196e3af4f] in branch develop. Tested on
 msvc 10 and 14, gcc 4.4.7 and 4.9.1, and clang 3.4.2.

 I used the suggested fix, calling write() from within close(), except it
 was necessary to make a small change to write() so that gzip_compressor
 can be composed with a device or filter that does not support write().

 Test case added.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5237#comment:10>
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:18 UTC