[Mono-bugs] [Bug 47404][Cri] Changed - System.IO.StreamReader's impl of buffers balks on non seeking streams

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 5 Aug 2003 15:07:36 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=47404

--- shadow/47404	Tue Aug  5 14:54:09 2003
+++ shadow/47404.tmp.13788	Tue Aug  5 15:07:36 2003
@@ -70,6 +70,15 @@
 ------- Additional Comments From ginga@kit.hi-ho.ne.jp  2003-08-05 14:54 -------
 The above patch is not good at performance because of exception 
 handling. A bit better way is to try to cast Stream as FileStream 
 (hopefully once in the construction phase), and if it relly is, then 
 check CanSeek and skip this check.
 
+
+------- Additional Comments From bmaurer@users.sf.net  2003-08-05 15:07 -------
+Ok, friend of mine just did an expariment on Windows. he steped into
+the code of StreamReader when the method is called. It does not *ever*
+have a call to .Position. In fact, the only method call was
+Encoding.GetDecoder ().
+
+So I think the impl of DiscardBufferedData is not meant to update the
+position in the stream.