On Thu, Apr 28, 2011 at 8:06 AM, Bo Jensen
<jensen.bo@gmail.com> wrote:
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 */
sink.push(boost::iostreams::gzip_compressor());
/* Push file writer */
sink.push(strm);
#if 0
/* This does not work */
sink <<" OBJ N"<< std::endl;
#else
/* This works */
sink <<" OBJ N"<< std::endl;
#endif
}
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 mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users