[MacRuby-devel] [MacRuby] #149: String concatenation loses encoding
MacRuby
ruby-noreply at macosforge.org
Sun Nov 2 22:15:44 PST 2008
#149: String concatenation loses encoding
----------------------------------------+-----------------------------------
Reporter: vincent.isambart at gmail.com | Owner: lsansonetti at 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/>
More information about the MacRuby-devel
mailing list