Project

General

Profile

Actions

Bug #2767

closed

YAML bug

Added by TimHaines (Tim Haines) over 14 years ago. Updated over 13 years ago.

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

Description

=begin
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:inload'
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
=end


Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #1311: YAML::dump creates strings YAML::load cannot parseClosed03/24/2009Actions
Actions #1

Updated by daz (Dave B) over 14 years ago

=begin

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

=end

Actions #2

Updated by naruse (Yui NARUSE) over 14 years ago

  • Priority changed from 6 to Normal

=begin

=end

Actions #3

Updated by mame (Yusuke Endoh) over 14 years ago

  • Status changed from Open to Closed

=begin
Hi,

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

--
Yusuke Endoh
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0