[Mono-dev] mono 2.6+ : Garbage added to BinaryWriter/GZipStream output?
Miguel de Icaza
miguel at novell.com
Sun Jan 31 13:29:46 EST 2010
There was a bug in Mono 2.6 that got fixed in a service release (2.6.1).
Could you confirm which Mono version you are running? Use: mono --version on the command line.
On Jan 26, 2010, at 8:31 PM, Hin-Tak Leung wrote:
> (I am not on the list - please CC)
> I have a small application which writes gzip'ed data like this:
> sw = new BinaryWriter(new GZipStream(new FileStream(filename,
> FileMode.Create, FileAccess.Write, FileShare.None),
> CompressionMode.Compress, true
> It use to work fine with mono 2.4, and still does in a way with mono 2.6 .
> What happens is that now it seems to append a lot of extra garbage to the end of the output.
> The uncompressed data is 1234127 bytes, and still recoverable in a indentical manner from the output with gzip -dc; but the output file is now 8126815 bytes with mono 2.6.x instead of 282363 bytes under mono 2.4.x , so almost 8MB of garbage is added somehow. I tried truncating the file, but it seems to truncate the gz stream as well.
> So does anybody else observe similiar problems and/or know of any reasons why mono 2.6 behaves differently in this regard compared to mono 2.4?
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list