diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-28 01:30:15 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-28 01:30:15 +0000 |
commit | 0cb987bc514495c99c3f5c3ee373594507d1c115 (patch) | |
tree | b520b5de3c875c52b85b0d8aabcffa94fb0e059a /test/psych | |
parent | 58fb7e9151dfd749832ab4edee0a2380cebaa906 (diff) | |
download | ruby-0cb987bc514495c99c3f5c3ee373594507d1c115.tar.gz |
* ext/psych/lib/psych.rb: default open YAML files with utf8 external
encoding. [ruby-core:42967]
* test/psych/test_tainted.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych')
-rw-r--r-- | test/psych/test_tainted.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/psych/test_tainted.rb b/test/psych/test_tainted.rb index 00d220e825..fdcced4cf3 100644 --- a/test/psych/test_tainted.rb +++ b/test/psych/test_tainted.rb @@ -121,7 +121,7 @@ module Psych t.binmode t.write string t.close - File.open(t.path) { |f| + File.open(t.path, 'r:bom|utf-8') { |f| @parser.parse f } t.close(true) |