#149: String concatenation loses encoding
----------------------------------------+-----------------------------------
Reporter: [EMAIL PROTECTED] | Owner: [EMAIL PROTECTED]
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/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel