[MacRuby-devel] [MacRuby] #339: YAML error with UTF-16 string

MacRuby ruby-noreply at macosforge.org
Fri Sep 18 00:42:16 PDT 2009


#339: YAML error with UTF-16 string
------------------------+---------------------------------------------------
 Reporter:  dev@…       |       Owner:  lsansonetti@…        
     Type:  defect      |      Status:  new                  
 Priority:  critical    |   Milestone:  MacRuby 0.5          
Component:  MacRuby     |    Keywords:  YAML encoding        
------------------------+---------------------------------------------------
 {{{
 macruby -e 'require "yaml"; puts "Rübe".to_yaml'
 }}}

 produces

 {{{
 --- ! "R\xFCb"
 }}}

 with the last character missing!

 BTW, I googled that  "YAML streams must be UTF-8 or UTF-16", so why is a
 escape sequence visible in the above puts statement?

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/339>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list