Project

General

Profile

Actions

Bug #719

closed

yaml not precise on some strings

Bug #719: yaml not precise on some strings

Added by MrO (a b) almost 17 years ago. Updated over 14 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.2dev (2010-03-24 trunk 27033) [i686-linux]
Backport:
[ruby-core:19721]

Description

=begin
require 'yaml'
data1 = [{"foo"=>"\n", "bar"=>"baz\n \nbaz"}]
data2 = YAML.load data1.to_yaml
p data1, data2

=>
[{"foo"=>"\n", "bar"=>"baz\n \nbaz"}]
[{"foo"=>"", "bar"=>"baz\n\nbaz"}]

I am not sure if yaml is supposed to return exactly the same value. I used the value for a hash, so I realized it is not exactly the same.

I tested it in 1.8.7 - Brian Candler from ruby-mailinglist reported it also on 1.8.4 and 1.9.1-preview1.

thanks.
=end


Files

yaml_specs.pdf (1.01 MB) yaml_specs.pdf YAML Specification paddor (Patrik Wenger), 11/12/2008 08:11 AM
Actions

Also available in: PDF Atom