#602: File.dirname cuts string at wrong index with unicode strings
------------------------------------+---------------------------------------
 Reporter:  mark.hubb...@…          |       Owner:  lsansone...@…               
              
     Type:  defect                  |      Status:  new                         
              
 Priority:  major                   |   Milestone:                              
              
Component:  MacRuby                 |    Keywords:  string path dirname unicode 
encoding utf-8
------------------------------------+---------------------------------------
 To quickly see the bug:
 p File.dirname "/αλφα/βετα.txt"
   #==> "/αλφα/βετ"

 Result should be "/αλφα". It looks like maybe it gets a byte index to cut
 at, then uses it as a character index?

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/602>
MacRuby <http://macruby.org/>

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to