2007/7/31, Andre Poenitz <[EMAIL PROTECTED]>: > > On Tue, Jul 31, 2007 at 12:21:39PM -0500, Bo Peng wrote: > > > > > > So this is the second report on corrupted compressed .lyx files within > > > a week. Maybe it's time to revert the boost zipping stuff. > > > > I have to say that, if this is indeed boost::iostreams' fault, I would > > be really disappointed at the quality of boost libraries. > > boost has no uniform quality. Some stuff is really good (regexpi, > shared_ptr), some less so (filesystem, and now apparently zipping) and > some is useless at best. > > > I think we can disable compression at 1.5.1, but allow reading of > > compressed files for backward compatibility. Anyway, this feature can > > be replaced by the embedding feature that may be introduced in 1.6.0. > > I believe zlib is much more robust than boost::iostreams. > > In the meantime I came to believe so as well. So why did we rip off > zlib initially? > > Andre' >
Maybe it could be better to write own iostream with zlib compression? Or you could find one in the net? For example http://www.codeproject.com/vcpp/stl/zipstream.asp is worth trying? I suggest to write suite of test cases to check its functionality. The Boost problem might be some deep into cacheing/buffering the output. Even more - implementation of STL might cause problems under Windows :-( -- Manveru jabber: [EMAIL PROTECTED] gg: 1624001 http://www.manveru.pl
