From: Tim Haines Date: 2010-02-20T17:33:59+09:00 Subject: [ruby-core:28267] [Bug #2767] YAML bug Bug #2767: YAML bug http://redmine.ruby-lang.org/issues/show/2767 Author: Tim Haines Status: Open, Priority: Urgent ruby -v: ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.8.0], MBARI 0x8770, Ruby Enterprise Edition 20090928 Start IRB, run: require 'yaml'; YAML.load({"x"=>"\r\n P\r\nA"}.to_yaml) result: ArgumentError: syntax error on line 4, col 2: ` A' from /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/yaml.rb:133:in `load' from /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/yaml.rb:133:in `load' from (irb):2 This happens in Ruby 1.87 174 and in Ruby 1.9.1 ---------------------------------------- http://redmine.ruby-lang.org