summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
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