* io.c (rb_io_each_codepoint): uninitialized local variable enc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6abc3e1b41
commit
bfcc8dbbd3
@ -1,3 +1,7 @@
|
|||||||
|
Thu Jun 25 06:50:23 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* io.c (rb_io_each_codepoint): uninitialized local variable enc.
|
||||||
|
|
||||||
Thu Jun 25 06:25:49 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Thu Jun 25 06:25:49 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* enum.c (first_i): wrong condition for no argument #first.
|
* enum.c (first_i): wrong condition for no argument #first.
|
||||||
|
3
io.c
3
io.c
@ -2822,7 +2822,8 @@ rb_io_each_codepoint(VALUE io)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (MBCLEN_INVALID_P(r)) {
|
if (MBCLEN_INVALID_P(r)) {
|
||||||
rb_raise(rb_eArgError, "invalid byte sequence in %s", rb_enc_name(enc));
|
rb_raise(rb_eArgError, "invalid byte sequence in %s",
|
||||||
|
rb_enc_name(fptr->encs.enc));
|
||||||
}
|
}
|
||||||
n = MBCLEN_CHARFOUND_LEN(r);
|
n = MBCLEN_CHARFOUND_LEN(r);
|
||||||
c = rb_enc_codepoint(fptr->cbuf+fptr->cbuf_off,
|
c = rb_enc_codepoint(fptr->cbuf+fptr->cbuf_off,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user