From: Charles Nutter Date: 2011-01-22T17:23:35+09:00 Subject: [ruby-core:34782] [Ruby 1.9-Bug#4301] Off-by-one line number in Psych parse error Issue #4301 has been updated by Charles Nutter. Hmm, I think there's more to this, and it could certainly be a bug in libyaml. The following version has the *correct* line number, without your patch: ~ ��� ruby -rpsych -ryaml -e 'YAML.parse("---\nldquor: ,,")'/Users/headius/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:148:in `parse': couldn't parse YAML at line 1 column 9 (Psych::SyntaxError) from /Users/headius/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:148:in `parse_stream' from /Users/headius/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:119:in `parse' from -e:1:in `
' So there's something about the yaml I posted in the bug description that's special ---------------------------------------- http://redmine.ruby-lang.org/issues/show/4301 ---------------------------------------- http://redmine.ruby-lang.org