Bug #2767

YAML bug

Added by Tim Haines almost 2 years ago. Updated 10 months ago.

[ruby-core:28267]
Status:Closed Start date:02/20/2010
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
ruby -v:ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.8.0], MBARI 0x8770, Ruby Enterprise Edition 20090928

Description

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

Related issues

duplicated by ruby-trunk - Bug #1311: YAML::dump creates strings YAML::load cannot parse Closed 03/24/2009

History

Updated by Dave B almost 2 years ago

Already reported at http://redmine.ruby-lang.org/issues/show/1311

Updated by Yui NARUSE almost 2 years ago

  • Priority changed from Urgent to Normal

Updated by Yusuke Endoh almost 2 years ago

  • Status changed from Open to Closed
Hi,

Syck is deprecated, in effect.  This issue won't be fixed.
Instead, try Psych.  [ruby-core:29337]

-- 
Yusuke Endoh <mame@tsg.ne.jp>

Also available in: Atom PDF