From: Simone Carletti Date: 2010-03-19T21:02:50+09:00 Subject: [ruby-core:28777] [Bug #1311] YAML::dump creates strings YAML::load cannot parse Issue #1311 has been updated by Simone Carletti. File yaml-error.txt added Here's an other test case for a similar issue.
require 'yaml'

> c = File.read("yaml-error.txt")
> YAML.load(YAML.dump(c))
'rgumentError: syntax error on line 34, col 0: `-- 
	from /Users/weppos/.rvm/ruby-1.8.7-p248/lib/ruby/1.8/yaml.rb:133:in `load'
	from /Users/weppos/.rvm/ruby-1.8.7-p248/lib/ruby/1.8/yaml.rb:133:in `load'
	from (irb):3
---------------------------------------- http://redmine.ruby-lang.org/issues/show/1311 ---------------------------------------- http://redmine.ruby-lang.org