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:
parent
4fb73c8fb4
commit
df425a015a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue