зеркало из https://github.com/github/ruby.git
* include/ruby/io.h (MakeOpenFile): fptr->enc should be
intialized to zero. [ruby-dev:32569] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b21aa43b4c
Коммит
266d186bcf
|
@ -1,3 +1,8 @@
|
|||
Thu Dec 13 13:09:03 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* include/ruby/io.h (MakeOpenFile): fptr->enc should be
|
||||
intialized to zero. [ruby-dev:32569]
|
||||
|
||||
Thu Dec 13 08:56:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* io.c (rb_io_getc): use default external encoding if fptr->enc is
|
||||
|
|
|
@ -90,6 +90,7 @@ typedef struct rb_io_t {
|
|||
fp->rbuf_len = 0;\
|
||||
fp->rbuf_capa = 0;\
|
||||
fp->tied_io_for_writing = 0;\
|
||||
fp->enc = 0;\
|
||||
} while (0)
|
||||
|
||||
FILE *rb_io_stdio_file(rb_io_t *fptr);
|
||||
|
|
Загрузка…
Ссылка в новой задаче