ruby-changes:19713
From: naruse <ko1@a...>
Date: Sat, 28 May 2011 03:07:21 +0900 (JST)
Subject: [ruby-changes:19713] naruse:r31758 (trunk): * io.c (fill_cbuf): return MORE_CHAR_SUSPENDED when cbuf is not empty.
naruse 2011-05-28 03:06:42 +0900 (Sat, 28 May 2011) New Revision: 31758 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31758 Log: * io.c (fill_cbuf): return MORE_CHAR_SUSPENDED when cbuf is not empty. Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 31757) +++ ChangeLog (revision 31758) @@ -1,3 +1,7 @@ +Sat May 28 03:04:27 2011 NARUSE, Yui <naruse@r...> + + * io.c (fill_cbuf): return MORE_CHAR_SUSPENDED when cbuf is not empty. + Sat May 28 02:22:48 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * string.c (rb_str_bytesize): rb_str_bytesize() should use LONG2NUM(). Index: io.c =================================================================== --- io.c (revision 31757) +++ io.c (revision 31758) @@ -1720,6 +1720,9 @@ } } } + if (cbuf_len0 != fptr->cbuf.len) + return MORE_CHAR_SUSPENDED; + return MORE_CHAR_FINISHED; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/