From a298f32e615c5b5292a5c3b01c618b4ff7b64bc8 Mon Sep 17 00:00:00 2001 From: yugui Date: Wed, 28 Jan 2009 09:20:46 +0000 Subject: merges r21715 and r21718 from trunk into ruby_1_9_1. * io.c (rb_io_ungetbyte, rb_io_ungetc): clears EOF flag. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index e97475775..9364d4b62 100644 --- a/ruby.c +++ b/ruby.c @@ -1552,6 +1552,7 @@ load_file_internal(VALUE arg) rb_io_ungetbyte(f, c); } require_libraries(opt); /* Why here? unnatural */ + rb_io_ungetbyte(f, Qnil); } if (opt->src.enc.index >= 0) { enc = rb_enc_from_index(opt->src.enc.index); -- cgit