Project

General

Profile

Bug #4383

psych fails to parse a symbol in a flow sequence

Added by yugui (Yuki Sonoda) almost 10 years ago. Updated over 9 years ago.

Status:
Third Party's Issue
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.3dev (2011-02-08 trunk 30821) [i386-darwin9.8.0]
Backport:
[ruby-core:35146]

Description

=begin
% ruby-trunk -rsyck -ryaml -ve 'p YAML.load("order: [ :year, :month, :day ]")'
ruby 1.9.3dev (2011-02-08 trunk 30821) [i386-darwin9.8.0]
{"order"=>[:year, :month, :day]}

% ruby-trunk -rpsych -ryaml -ve 'p YAML.load("order: [ :year, :month, :day ]")'
ruby 1.9.3dev (2011-02-08 trunk 30821) [i386-darwin9.8.0]
/Users/yugui/local/lib/ruby-trunk/1.9.1/psych.rb:153:in parse': (<unknown>): couldn't parse YAML at line 0 column 10 (Psych::SyntaxError)
from /Users/yugui/local/lib/ruby-trunk/1.9.1/psych.rb:153:in
parse_stream'
from /Users/yugui/local/lib/ruby-trunk/1.9.1/psych.rb:124:in parse'
from /Users/yugui/local/lib/ruby-trunk/1.9.1/psych.rb:111:in
load'
from -e:1:in `'

The example YAML is a part of lib/active_support/locale/en.yml in ActiveSupport 2.3.10.
=end

Also available in: Atom PDF