From 7f2ca5ba7a5afd95354d7ea9a39741cebff38e70 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 21 Feb 2008 05:47:12 +0000 Subject: * io.c (argf_set_encoding): uses current_file after check for next input. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_io.rb | 4 ++++ bootstraptest/test_knownbug.rb | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bootstraptest') diff --git a/bootstraptest/test_io.rb b/bootstraptest/test_io.rb index 4974a1eeb9..07211050a6 100644 --- a/bootstraptest/test_io.rb +++ b/bootstraptest/test_io.rb @@ -69,3 +69,7 @@ assert_equal 'ok', %q{ File.unlink(tmpname) :ok } + +assert_normal_exit %q{ + ARGF.set_encoding "foo" +} diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 7a697c76b8..c438231f2c 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -57,7 +57,3 @@ assert_normal_exit %q{ assert_normal_exit %q{ "".center(1, "\x80".force_encoding("utf-8")) }, '[ruby-dev:33807]' - -assert_normal_exit %q{ - ARGF.set_encoding "foo" -} -- cgit v1.2.3