diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-31 00:13:03 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-31 00:13:03 +0000 |
commit | d500908417d88291a649a46de2766c3aa8dcf82d (patch) | |
tree | 2ca41a83ef3b9c2621b3f9a8753b7a47e5b74e14 | |
parent | 3cefaf62788ca8eda1747c0db7dfcd350b6978f2 (diff) |
merges r31747 and r31758 from trunk into ruby_1_9_2.
--
* io.c (fill_cbuf): finish reading at EOF.
--
* io.c (fill_cbuf): return MORE_CHAR_SUSPENDED when cbuf is not empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | io.c | 5 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 14 insertions, 1 deletions
@@ -1,3 +1,11 @@ +Sat May 28 03:04:27 2011 NARUSE, Yui <naruse@ruby-lang.org> + + * io.c (fill_cbuf): return MORE_CHAR_SUSPENDED when cbuf is not empty. + +Fri May 27 22:38:54 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * io.c (fill_cbuf): finish reading at EOF. + Fri May 27 11:31:51 2011 misfo <tedwardo2@gmail.com> * lib/rexml/text.rb (REXML::Text#initialize): prevent an error @@ -1694,10 +1694,15 @@ fill_cbuf(rb_io_t *fptr, int ec_flags) res = rb_econv_convert(fptr->readconv, NULL, NULL, &dp, de, 0); fptr->cbuf_len += (int)(dp - ds); rb_econv_check_error(fptr->readconv); + break; } } } } + if (cbuf_len0 != fptr->cbuf_len) + return MORE_CHAR_SUSPENDED; + + return MORE_CHAR_FINISHED; } static VALUE @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_PATCHLEVEL 258 +#define RUBY_PATCHLEVEL 259 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 |