1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Default script encoding is now UTF-8

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-05-19 15:44:09 +00:00
parent 4fb73c8fb4
commit df425a015a

View file

@ -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