ruby-changes:8615
From: matz <ko1@a...>
Date: Sat, 8 Nov 2008 17:33:12 +0900 (JST)
Subject: [ruby-changes:8615] Ruby:r20150 (trunk): * ext/stringio/stringio.c (strio_ungetc): ungetc position should
matz 2008-11-08 17:32:55 +0900 (Sat, 08 Nov 2008) New Revision: 20150 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20150 Log: * ext/stringio/stringio.c (strio_ungetc): ungetc position should not be changed from 1.8. [ruby-core:19632] Modified files: trunk/ChangeLog trunk/ext/stringio/stringio.c Index: ChangeLog =================================================================== --- ChangeLog (revision 20149) +++ ChangeLog (revision 20150) @@ -1,3 +1,8 @@ +Sat Nov 8 17:31:41 2008 Yukihiro Matsumoto <matz@r...> + + * ext/stringio/stringio.c (strio_ungetc): ungetc position should + not be changed from 1.8. [ruby-core:19632] + Sat Nov 8 17:15:08 2008 Yukihiro Matsumoto <matz@r...> * lib/optparse.rb (OptionParser#make_switch): 1.9 Symbols respond Index: ext/stringio/stringio.c =================================================================== --- ext/stringio/stringio.c (revision 20149) +++ ext/stringio/stringio.c (revision 20150) @@ -721,7 +721,7 @@ } } /* get logical position */ - lpos = 0; p = RSTRING_PTR(ptr->string); pend = p + ptr->pos - 1; + lpos = 0; p = RSTRING_PTR(ptr->string); pend = p + ptr->pos; for (;;) { clen = rb_enc_mbclen(p, pend, enc); if (p+clen >= pend) break; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/