diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-19 15:44:09 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-19 15:44:09 +0000 |
commit | df425a015a6a84cc85fa8c9e37f0e4b8e067a62c (patch) | |
tree | cd26c50c0514c90e78540cc19cc37694fddd06c4 /test/ruby | |
parent | 4fb73c8fb4fed5cd93c64f640f647f7a54421349 (diff) | |
download | ruby-df425a015a6a84cc85fa8c9e37f0e4b8e067a62c.tar.gz |
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.rb | 2 |
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 |