ruby-changes:8412
From: nobu <ko1@a...>
Date: Sun, 26 Oct 2008 13:31:00 +0900 (JST)
Subject: [ruby-changes:8412] Ruby:r19943 (trunk): * io.c (read_all): use the given buffer to read when needs readconv.
nobu 2008-10-26 13:30:45 +0900 (Sun, 26 Oct 2008) New Revision: 19943 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19943 Log: * io.c (read_all): use the given buffer to read when needs readconv. based on the patch by wanabe <s.wanabe AT gmail.com> at [ruby-dev:36931]. Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 19942) +++ ChangeLog (revision 19943) @@ -1,3 +1,9 @@ +Sun Oct 26 13:30:28 2008 Nobuyoshi Nakada <nobu@r...> + + * io.c (read_all): use the given buffer to read when needs readconv. + based on the patch by wanabe <s.wanabe AT gmail.com> at + [ruby-dev:36931]. + Sun Oct 26 07:57:35 2008 Eric Hodel <drbrain@s...> * lib/rubygems*: Update to RubyGems 1.3.1 r1909. Index: io.c =================================================================== --- io.c (revision 19942) +++ io.c (revision 19943) @@ -1556,7 +1556,7 @@ int cr; if (NEED_READCONV(fptr)) { - VALUE str = rb_str_new(NULL, 0); + if (!NIL_P(str)) rb_str_set_len(str, 0); make_readconv(fptr); while (1) { if (fptr->cbuf_len) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/