[MacRuby] #149: String concatenation loses encoding
#149: String concatenation loses encoding ----------------------------------------+----------------------------------- Reporter: vincent.isambart@gmail.com | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: critical | Milestone: Component: MacRuby | Keywords: ----------------------------------------+----------------------------------- Concatening strings loses the encoding:[[BR]] a = 'あ'[[BR]] a.encoding # => #<Encoding:Unicode (UTF-16)>[[BR]] (a+a).encoding # => #<Encoding:Western (Mac OS Roman)>[[BR]] ('a'+a).encoding # => #<Encoding:Western (Mac OS Roman)>[[BR]] The encoding should be the same for all 3 (UTF-16). -- Ticket URL: <http://www.macruby.org/trac/ticket/149> MacRuby <http://macruby.org/>
#149: String concatenation loses encoding ----------------------------------------+----------------------------------- Reporter: vincent.isambart@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: Component: MacRuby | Keywords: ----------------------------------------+----------------------------------- Comment(by celtic@…): Looks fixed in trunk at r809. -- Ticket URL: <http://www.macruby.org/trac/ticket/149#comment:1> MacRuby <http://macruby.org/>
#149: String concatenation loses encoding ----------------------------------------+----------------------------------- Reporter: vincent.isambart@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: critical | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------------+----------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.5 Comment: Looks good in trunk (for what we actually support...). {{{ $ cat t.rb a='あ' p a.encoding p (a+a).encoding p ('a'+a).encoding $ ./miniruby t.rb #<Encoding:Unicode (UTF-16)> #<Encoding:Unicode (UTF-16)> #<Encoding:Unicode (UTF-16)> }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/149#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby