From: Mauricio Fernandez Date: 2006-05-10T03:48:22+09:00 Subject: Re: Possible YAMl bug in 1.8.4 On Tue, May 09, 2006 at 10:51:54AM +0900, Curt Hibbs wrote: > Its probably a bug. I'm not familiar with the specifics, but Ruby > 1.8.4does have known bugs in its YAML support. > > I haven't verified this, by ruby-mswin32 (upon which the one-click installer > is built) has a new 1.8.4 build released last month. Since there have not > been any further releases of Ruby 1.8.4, I'm assuming that this ruby-mswin32 > release includes updated YAML fixes from CVS HEAD. > > Anyway, I'm going to find out and, if so, update the one-click installer for > its next release. It's not fixed in CVS (ruby_1_8 branch): $ ruby -v yaml-bug.rb ruby 1.8.4 (2006-05-09) [i686-linux] /home/batsman/usr/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 5, col 4: `
From: Yukihiro Matsumoto <matz at' (ArgumentError) from /home/batsman/usr/lib/ruby/1.8/yaml.rb:133:in `load' from yaml-bug.rb:7 $ cat yaml-bug.rb require 'yaml' bug=[{:content=>"\n\n
\n
From: Yukihiro Matsumoto <matz at ruby-lang.org>
"}] dumped=YAML.dump(bug) p YAML::load( dumped ) -- Mauricio Fernandez - http://eigenclass.org - singular Ruby