[Mono-list] [Fwd: [Mono-cvs-list] Mono CVS: mcs gonzalo]
02 Jul 2002 20:00:09 -0500
On Tue, 2002-07-02 at 18:32, Gonzalo Paniagua Javier wrote:
> I got a "\r" from StreamReader.ReadLine cause Peek always returned -1
> cause you cannot seek a NetworkStream.
> With MS runtime, it worked fine, so i supposed they don't check for
> CanSeek in StreamReader.Peek (), which does not need any seek operation to
> be done, just reading one more char and keep it buffered.
> Do you still think that i'm wrong?
Yes. The Peek check still needs to be there. The fix is needed in
ReadLine. The way it checks for line termination is broken. I'll check
in a fix in a few minutes.