From df425a015a6a84cc85fa8c9e37f0e4b8e067a62c Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 19 May 2013 15:44:09 +0000 Subject: Default script encoding is now UTF-8 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/envutil.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/envutil.rb') diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 0631a94ed3..c80a5f7da9 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -162,7 +162,7 @@ module Test code.sub!(/\A(?:\xef\xbb\xbf)?(\s*\#.*$)*(\n)?/n) { "#$&#{"\n" if $1 && !$2}BEGIN{throw tag, :ok}\n" } - code.force_encoding("us-ascii") + code.force_encoding(Encoding::UTF_8) verbose, $VERBOSE = $VERBOSE, nil yield if defined?(yield) case -- cgit v1.2.3