[MacRuby] #224: String upcase method doesn't behave properly when containing a unicode character
#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/>
#224: String upcase method doesn't behave properly when containing a unicode character -------------------------------------+-------------------------------------- Reporter: mattaimonetti@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: minor | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: | -------------------------------------+-------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.5 Comment: Looks like this is fixed in trunk. {{{ $ ./miniruby -e "p 'un éléphant ça trompe énormément'.upcase" "UN ÉLÉPHANT ÇA TROMPE ÉNORMÉMENT" }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/224#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby