[MacRuby-devel] [MacRuby] #149: String concatenation loses encoding

MacRuby ruby-noreply at macosforge.org
Fri Aug 28 12:00:44 PDT 2009


#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/>



More information about the MacRuby-devel mailing list