YAML bug with binary data

  • Thread starter Michael Witrant
  • Start date
M

Michael Witrant

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top