[MacRuby-devel] [MacRuby] #224: String upcase method doesn't behave properly when containing a unicode character

MacRuby ruby-noreply at macosforge.org
Thu Feb 26 22:41:56 PST 2009


#224: String upcase method doesn't behave properly when containing a unicode
character
-------------------------------------+--------------------------------------
 Reporter:  mattaimonetti@…          |       Owner:  lsansonetti@…        
     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/>



More information about the MacRuby-devel mailing list