#224: String upcase method doesn't behave properly when containing a unicode character -------------------------------------+-------------------------------------- Reporter: mattaimone...@… | Owner: lsansone...@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: -------------------------------------+-------------------------------------- {{{ $ macirb >> "macruby is awesome".upcase => "MACRUBY IS AWESOME" >> "apprendre macruby à l'école".upcase => "mapprendre macruby \xC3\xA0 l'\xC3\xA9cole" }}}
{{{ $ irb1.9 irb(main):001:0> "macruby is awesome".upcase => "MACRUBY IS AWESOME" irb(main):002:0> "apprendre macruby à l'école".upcase => "APPRENDRE MACRUBY à L'éCOLE" }}} Workaround: {{{ >> "apprendre macruby à l'école".uppercaseString => "APPRENDRE MACRUBY \xC3\x80 L'\xC3\x89COLE" }}} The unicode display issue is due to irb not supporting this feature, however the Ruby #upcase method is definitely not working properly. -- Ticket URL: <http://www.macruby.org/trac/ticket/224> MacRuby <http://macruby.org/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel