From: Aaron Patterson Date: 2011-01-23T07:41:29+09:00 Subject: [ruby-core:34796] Re: [Ruby 1.9-Bug#4301] Off-by-one line number in Psych parse error --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 22, 2011 at 05:23:35PM +0900, Charles Nutter wrote: > Issue #4301 has been updated by Charles Nutter. >=20 >=20 > Hmm, I think there's more to this, and it could certainly be a bug in lib= yaml. The following version has the *correct* line number, without your pat= ch: >=20 > ~ =E2=9E=94 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 `
' >=20 > So there's something about the yaml I posted in the bug description that'= s special You're right. I'm going to revert this patch and reopen the ticket until I figure out what's wrong. This definitely looks like a libyaml problem. :-( --=20 Aaron Patterson http://tenderlovemaking.com/ --BOKacYhQ+x31HxR3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) iQEcBAEBAgAGBQJNO10EAAoJEJUxcLy0/6/GaXsH/2VFhfcNji4G7pgjRbLrwXLI fDLpLATR/osYxXoT8ab+dm+he/l5YhM4RY85ashoZQC8viob1/EfyEDi125nYqNf 3fFRen19Cxs+jFxkZ9ukzNXFkkiqDY8H6WTcVvqMtvwKxaONuxjVHamQt2sCH+10 GDfYPxtw2ruQtKJwQ6TyET8opm8zLQl06Y4RpyZbzbPpjNy1DOtbdEO2MKcNsgSI W+fZUc4Y/T71Ik3kd/AH5kNT7ymWaIG0AfuMgIyz5sJEuBFxZdUsmHnu2hJEjcid nGFNzHgDz9/53Tc8Y8gSUxUC96fr0I7cBIdTbMfsDrdIyIz2ftItpD4j36nX1IE= =tav/ -----END PGP SIGNATURE----- --BOKacYhQ+x31HxR3--