ruby-changes:5186
From: mame <ko1@a...>
Date: Thu, 29 May 2008 22:46:23 +0900 (JST)
Subject: [ruby-changes:5186] Ruby:r16681 (trunk): * io.c (argf_readchar): raise EOFError, synchronizing IO#readchar.
mame 2008-05-29 22:42:20 +0900 (Thu, 29 May 2008) New Revision: 16681 Modified files: trunk/ChangeLog trunk/io.c Log: * io.c (argf_readchar): raise EOFError, synchronizing IO#readchar. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16681&r2=16680&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/io.c?r1=16681&r2=16680&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 16680) +++ ChangeLog (revision 16681) @@ -1,3 +1,7 @@ +Thu May 29 22:41:48 2008 Yusuke Endoh <mame@t...> + + * io.c (argf_readchar): raise EOFError, synchronizing IO#readchar. + Thu May 29 22:29:39 2008 Yusuke Endoh <mame@t...> * io.c (argf_external_encoding, argf_internal_encoding): fix SEGV by Index: io.c =================================================================== --- io.c (revision 16680) +++ io.c (revision 16681) @@ -7193,7 +7193,7 @@ 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); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/