Boost logo

Boost Users :

Subject: [Boost-users] [iostream] gzip filter buggy on windows
From: Bo Jensen (jensen.bo_at_[hidden])
Date: 2011-04-28 08:06:54

In my quest of making gzip work for my application on windows, I found
the following bug :

int main(int argc, char *argv[])
 std::ofstream strm("test.gz");

 boost::iostreams::filtering_ostream sink;

 /* Push gzip compressor */

 /* Push file writer */

 #if 0
 /* This does not work */
 sink <<" OBJ N"<< std::endl;
 /* This works */
 sink <<" OBJ N"<< std::endl;

The first string results in a invalid gzip file i.e invalid compressed
data--length error. I am aware this might be a bug in zib lib. It
works on without any problems on linux.

Does anyone use gzip on windows on a regular basis ?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at