ruby-changes:14677
From: wanabe <ko1@a...>
Date: Sun, 31 Jan 2010 23:29:40 +0900 (JST)
Subject: [ruby-changes:14677] Ruby:r26529 (trunk): * io.c (rb_io_each_codepoint): use cbuf when needs readconv.
wanabe 2010-01-31 23:24:40 +0900 (Sun, 31 Jan 2010) New Revision: 26529 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26529 Log: * io.c (rb_io_each_codepoint): use cbuf when needs readconv. Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 26528) +++ ChangeLog (revision 26529) @@ -1,3 +1,7 @@ +Sun Jan 31 23:20:43 2010 wanabe <s.wanabe@g...> + + * io.c (rb_io_each_codepoint): use cbuf when needs readconv. + Sun Jan 31 23:07:23 2010 Yusuke Endoh <mame@t...> * test/ruby/test_dir.rb: use string instead of symbol as file name. Index: io.c =================================================================== --- io.c (revision 26528) +++ io.c (revision 26529) @@ -2860,8 +2860,8 @@ c = rb_enc_codepoint(fptr->cbuf+fptr->cbuf_off, fptr->cbuf+fptr->cbuf_off+fptr->cbuf_len, fptr->encs.enc); - fptr->rbuf_off += n; - fptr->rbuf_len -= n; + fptr->cbuf_off += n; + fptr->cbuf_len -= n; rb_yield(UINT2NUM(c)); } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/