YAML fails when dumping and loading ["\0\n_",nil]:
$ ruby -v -ryaml -e 'YAML.load ["\0\n_",nil].to_yaml'
ruby 1.8.2 (2004-12-23) [i386-linux]
/usr/lib/ruby/1.8/yaml.rb:119:in `load': parse error on line 4, col -2:
`- ' (ArgumentError)
from /usr/lib/ruby/1.8/yaml.rb:119:in `load'
from -e:1
Same problem from CVS:
$ ./ruby -v -ryaml -e 'YAML.load ["\0\n_",nil].to_yaml'
ruby 1.9.0 (2005-09-09) [i686-linux]
/home/mike/build/ruby/lib/ruby/1.9/yaml.rb:119:in `load': parse error on
line 4, col -2: `- ' (ArgumentError)
from /home/mike/build/ruby/lib/ruby/1.9/yaml.rb:119:in `load'
from -e:1
The problem has already been notified in ruby-talk 150620 but nobody
replied and the bug is still there.