* StreamReader.cs (DiscardBufferedData): Reset the decoder too.
(r=eno)
svn path=/trunk/mcs/; revision=48719
+2005-08-23 Raja R Harinath <rharinath@novell.com>
+
+ Fix #75679.
+ * StreamReader.cs (DiscardBufferedData): Reset the decoder too.
+
2005-07-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* BinaryReader.cs: use Buffer.BlockCopy instead of Array.Copy when
{
pos = decoded_count = 0;
mayBlock = false;
+ // Discard internal state of the decoder too.
+ decoder = encoding.GetDecoder ();
}
// the buffer is empty, fill it again