summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-19 15:44:09 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-19 15:44:09 +0000
commitdf425a015a6a84cc85fa8c9e37f0e4b8e067a62c (patch)
treecd26c50c0514c90e78540cc19cc37694fddd06c4 /test/ruby
parent4fb73c8fb4fed5cd93c64f640f647f7a54421349 (diff)
Default script encoding is now UTF-8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/envutil.rb2
1 files changed, 1 insertions, 1 deletions
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