From: Mauricio Fernandez Date: 2006-06-01T00:25:26+09:00 Subject: [BUG] round trip failure with YAML; both ruby_1_8 and HEAD I caught syck corrupting data once again, and traced it down to this: $ cat yamlbug.rb require 'yaml' orig = "\n" new = YAML.load(YAML.dump(orig)) puts "Should be #{orig.inspect}, but is: #{new.inspect}" puts "YAML: #{YAML.dump(orig).inspect}" $ ruby -v yamlbug.rb ruby 1.8.4 (2006-05-18) [i686-linux] Should be "\n", but is: "" YAML: "--- |\n\n\n" $ ruby19 -v yamlbug.rb ruby 1.9.0 (2006-05-18) [i686-linux] Should be "\n", but is: "" YAML: "--- |\n\n\n" It's a bit unreassuring. -- Mauricio Fernandez - http://eigenclass.org - singular Ruby