diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-29 13:42:20 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-29 13:42:20 +0000 |
commit | 8fefe64adcde2d470ae137eac98ce86c28852aa6 (patch) | |
tree | cf6aaa08bc48cab9c94cf21095190d171258dcda /io.c | |
parent | 17248a467e6af5e1c55c91668c2fe2fae9b6d54d (diff) | |
download | ruby-8fefe64adcde2d470ae137eac98ce86c28852aa6.tar.gz |
* io.c (argf_readchar): raise EOFError, synchronizing IO#readchar.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7193,7 +7193,7 @@ argf_readchar(VALUE argf) VALUE ch; retry: - if (!next_argv()) return Qnil; + if (!next_argv()) return rb_eof_error(); if (TYPE(current_file) != T_FILE) { ch = rb_funcall3(current_file, rb_intern("getc"), 0, 0); } |