* ext/stringio/stringio.c (strio_ungetc): ungetc position should
not be changed from 1.8. [ruby-core:19632] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6a638cc196
commit
75fcee4a23
@ -1,3 +1,8 @@
|
|||||||
|
Sat Nov 8 17:31:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Sat Nov 8 17:15:08 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* lib/optparse.rb (OptionParser#make_switch): 1.9 Symbols respond
|
* lib/optparse.rb (OptionParser#make_switch): 1.9 Symbols respond
|
||||||
|
@ -721,7 +721,7 @@ strio_ungetc(VALUE self, VALUE c)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* get logical position */
|
/* 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 (;;) {
|
for (;;) {
|
||||||
clen = rb_enc_mbclen(p, pend, enc);
|
clen = rb_enc_mbclen(p, pend, enc);
|
||||||
if (p+clen >= pend) break;
|
if (p+clen >= pend) break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user