diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-05 09:26:13 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-05 09:26:13 -0800 |
commit | 99b46899732b32d5ab08b82bcba03f276a281f4f (patch) | |
tree | 8414c3fe51da15d6311531e5bff9db8da7295cee /test | |
parent | 3ef54d1b36bfec75f0eb6c9de8c9cb5e71d25bcd (diff) | |
download | psych-99b46899732b32d5ab08b82bcba03f276a281f4f.zip |
* ext/psych/lib/psych.rb: default open YAML files with utf8 external
encoding. [ruby-core:42967]
* test/psych/test_tainted.rb: ditto
Diffstat (limited to 'test')
-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 00d220e..fdcced4 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) |