mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c (rb_io_getc): forgot to commit rb_enc_mbclen() fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9a46ab6b62
commit
ae11bc70f1
3 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri Sep 7 00:28:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* io.c (rb_io_getc): forgot to commit rb_enc_mbclen() fix.
|
||||
|
||||
Thu Sep 6 22:57:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/fileutils.rb (FileUtils::Entry_::copy): prevent self copy of
|
||||
|
|
2
io.c
2
io.c
|
@ -2094,7 +2094,7 @@ rb_io_getc(VALUE io)
|
|||
if (io_fillbuf(fptr) < 0) {
|
||||
return Qnil;
|
||||
}
|
||||
n = rb_enc_mbclen(fptr->rbuf+fptr->rbuf_off, enc);
|
||||
n = rb_enc_mbclen(fptr->rbuf+fptr->rbuf_off, fptr->rbuf+fptr->rbuf_len, enc);
|
||||
if (n < fptr->rbuf_len) {
|
||||
str = rb_str_new(fptr->rbuf+fptr->rbuf_off, n);
|
||||
fptr->rbuf_off += n;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#define RUBY_VERSION "1.9.0"
|
||||
#define RUBY_RELEASE_DATE "2007-09-06"
|
||||
#define RUBY_RELEASE_DATE "2007-09-07"
|
||||
#define RUBY_VERSION_CODE 190
|
||||
#define RUBY_RELEASE_CODE 20070906
|
||||
#define RUBY_RELEASE_CODE 20070907
|
||||
#define RUBY_PATCHLEVEL 0
|
||||
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
|
@ -9,7 +9,7 @@
|
|||
#define RUBY_VERSION_TEENY 0
|
||||
#define RUBY_RELEASE_YEAR 2007
|
||||
#define RUBY_RELEASE_MONTH 9
|
||||
#define RUBY_RELEASE_DAY 6
|
||||
#define RUBY_RELEASE_DAY 7
|
||||
|
||||
#ifdef RUBY_EXTERN
|
||||
RUBY_EXTERN const char ruby_version[];
|
||||
|
|
Loading…
Reference in a new issue