#602: File.dirname cuts string at wrong index with unicode strings
------------------------------------+---------------------------------------
Reporter: mark.hubb...@… | Owner: vincent.isamb...@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords: string path dirname unicode
encoding utf-8
------------------------------------+---------------------------------------
Changes (by eloy.de.en...@…):
* owner: lsansone...@… => vincent.isamb...@…
Comment:
String is being worked on. For now, as a workaround, you could use the
Cocoa API like:
{{{
p = "/αλφα/βετα.txt"
puts p.stringByDeletingLastPathComponent # => "/αλφα"
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/602#comment:1>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel