Project

General

Profile

This project is closed and read-only.

Actions

Backport #991

closed

YAML: '--- stuff' not escaped as root-level hashkey

Backport #991: YAML: '--- stuff' not escaped as root-level hashkey

Added by gyngve (Gary Yngve) over 17 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
-
[ruby-core:21225]

Description

=begin

{"--- foo" => "bar"}.to_yaml
=> "--- \n--- foo: bar\n"

YAML.load _
=> nil

(the --- needs to be put in quotes so it's not interpreted as the start of a new yaml, i.e.
"--- \n"--- foo": bar\n")

I also required the yaml.rb in 1.9.1 preview1; it seems to be a problem there too.
=end

Updated by ko1 (Koichi Sasada) over 17 years ago Actions #1

  • ruby -v set to Ruby 1.8.6

=begin

=end

Updated by jeremyevans0 (Jeremy Evans) about 7 years ago Actions #2

  • Tracker changed from Bug to Backport
  • Project changed from 2 to 5
  • Description updated (diff)
  • Status changed from Open to Closed
  • Target version deleted (Ruby 1.8.6)
  • ruby -v deleted (Ruby 1.8.6)
Actions

Also available in: PDF Atom