Author: miguel
Date: 2005-04-09 15:26:11 -0400 (Sat, 09 Apr 2005)
New Revision: 42739
Modified:
branches/mono-1-0/mcs/class/corlib/System.IO/StreamWriter.cs
Log:
Fix for 74513 on 1-0 branch
Modified: branches/mono-1-0/mcs/class/corlib/System.IO/StreamWriter.cs
===================================================================
--- branches/mono-1-0/mcs/class/corlib/System.IO/StreamWriter.cs
2005-04-09 19:23:15 UTC (rev 42738)
+++ branches/mono-1-0/mcs/class/corlib/System.IO/StreamWriter.cs
2005-04-09 19:26:11 UTC (rev 42739)
@@ -72,6 +72,9 @@
int BufferSize = Math.Max(bufferSize,
MinimumBufferSize);
decode_buf = new char [BufferSize];
byte_buf = new byte [encoding.GetMaxByteCount
(BufferSize)];
+ // Fixes bug
http://bugzilla.ximian.com/show_bug.cgi?id=74513
+ if (internalStream.CanSeek && internalStream.Position >
0)
+ preamble_done = true;
}
//[MonoTODO("Nothing is done with bufferSize")]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches