зеркало из https://github.com/github/ruby.git
* 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:
Родитель
6abc3e1b41
Коммит
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>
|
||||
|
||||
* 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)) {
|
||||
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);
|
||||
c = rb_enc_codepoint(fptr->cbuf+fptr->cbuf_off,
|
||||
|
|
Загрузка…
Ссылка в новой задаче