[Mono-bugs] [Bug 32926][Cri] New - SystemIO.StreamReader:Peek() doesn't work with non-seekable Streams

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
28 Oct 2002 12:13:27 -0000


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 dent@cosy.sbg.ac.at.

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

--- shadow/32926	Mon Oct 28 07:13:27 2002
+++ shadow/32926.tmp.14757	Mon Oct 28 07:13:27 2002
@@ -0,0 +1,44 @@
+Bug#: 32926
+Product: Mono/Class Libraries
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dent@cosy.sbg.ac.at               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: SystemIO.StreamReader:Peek() doesn't work with non-seekable Streams
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+System.IO.StreamReader.cs Peek() doesn't work with NetworkStream
+
+Steps to reproduce the problem:
+1. 
+2. 
+3. 
+
+Actual Results:
+-1
+
+Expected Results:
+character at the current position of the stream
+
+How often does this happen? 
+everytime
+
+Additional Information:
+Peek() checks for basestream.CanSeek() (in this case
+networkStream.CanSeek()) which returns -1, and therefore
+the function bails out.
+
+Peek() should work even if the underlaying stream doen't
+allow seeking