[Mono-bugs] [Bug 48697][Blo] Changed - TextReader.ReadBlock: return number of characters read when reading less than expected

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 20 Oct 2003 17:32:29 -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 reali@acm.org.

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

--- shadow/48697	2003-10-20 17:29:05.000000000 -0400
+++ shadow/48697.tmp.725	2003-10-20 17:32:29.000000000 -0400
@@ -43,6 +43,18 @@
 I'll see if I can strip it down a bit.
 
 ------- Additional Comments From reali@acm.org  2003-10-20 17:29 -------
 Created an attachment (id=5682)
 test case
 
+
+------- Additional Comments From reali@acm.org  2003-10-20 17:32 -------
+OK, I did send the test-case as requested.
+
+A bit of explanation: SillyReader.Read(char[]...) returns its 
+contents one at the time. ReadBlock is supposed to remedy this by 
+invoking Read multiple times until all requested chars are read. The 
+actual version does so but return only the amount of chars read 
+during the last iteration instead of the total of chars read by all 
+iterations.
+
+The patch fixes this problem.