From 8d33d0a5609455a334e53e1530409530a3a5ceed Mon Sep 17 00:00:00 2001 From: wanabe Date: Sun, 31 Jan 2010 14:24:40 +0000 Subject: * io.c (rb_io_each_codepoint): use cbuf when needs readconv. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index e69fc9dc46..4017778e0c 100644 --- a/io.c +++ b/io.c @@ -2860,8 +2860,8 @@ rb_io_each_codepoint(VALUE io) 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)); } } -- cgit v1.2.3