summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-27 14:36:38 +0000
committerwyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-27 14:36:38 +0000
commite341e9b035294d1acf5347620fbd2fcb9245d382 (patch)
tree3ffe4864ddfcd053b876b924ae30a5b9adb38729
parent74eb575c8d06ea64efb6c817e8cbed976e5e863a (diff)
downloadruby-e341e9b035294d1acf5347620fbd2fcb9245d382.tar.gz
Backport #1818 [ruby-core:24561]; (argf_eof): go to the next file if called after ARGF.close or ARGF.skip.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@26451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--io.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 444a30ac4e..c545614f32 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
Wed Jan 27 22:16:00 2010 Kirk Haines <khaines@ruby-lang.org>
- * lib/rexml/text.rb: Backport #1806 [ruby-core:24506]; (REXML::Text.normalize): call to_s for input.
+ * io.c: Backport #1818 [ruby-core:24561]; (argf_eof): go to the next file if called after ARGF.close or ARGF.skip.
+
+ * lib/rexml/text.rb: Backport #1806 [ruby-core:24506]; (REXML::Text.normalize): call to_s for input. r26442
Tue Jan 26 3:03:00 2010 Kirk Haines <khaines@ruby-lang.org>
diff --git a/io.c b/io.c
index 257a0ea07e..4d930a02cc 100644
--- a/io.c
+++ b/io.c
@@ -5430,6 +5430,7 @@ argf_eof()
{
if (current_file) {
if (init_p == 0) return Qtrue;
+ next_argv();
ARGF_FORWARD(0, 0);
if (rb_io_eof(current_file)) {
return Qtrue;