Bug #4383: psych fails to parse a symbol in a flow sequence
http://redmine.ruby-lang.org/issues/show/4383

Author: Yuki Sonoda
Status: Assigned, Priority: Normal
Assigned to: Aaron Patterson, Category: ext, Target version: 1.9.3
ruby -v: ruby 1.9.3dev (2011-02-08 trunk 30821) [i386-darwin9.8.0] 

% 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 `<main>'

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


----------------------------------------
http://redmine.ruby-lang.org