From: Aaron Patterson Date: 2010-03-25T09:34:37+09:00 Subject: [ruby-core:28957] Re: [Bug #719] yaml not precise on some strings On Thu, Mar 25, 2010 at 02:12:31AM +0900, Yusuke Endoh wrote: > Issue #719 has been updated by Yusuke Endoh. > > Assigned to changed from Shyouhei Urabe to Aaron Patterson > ruby -v set to ruby 1.9.2dev (2010-03-24 trunk 27033) [i686-linux] > > Hi Aaron, > > What do you think about this ticket? > > > > 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"}] > > > This seems to be still reproduced. It works with psych. But can I have this ticket assigned to me? I will close it when I get psych merged to trunk. $ irb -I lib irb(main):001:0> require 'psych' => true irb(main):002:0> data1 = [{"foo"=>"\n", "bar"=>"baz\n \nbaz"}] => [{"foo"=>"\n", "bar"=>"baz\n \nbaz"}] irb(main):003:0> data1 == Psych.load(Psych.dump(data1)) => true irb(main):004:0> -- Aaron Patterson http://tenderlovemaking.com/