[MacRuby-devel] [MacRuby] #602: File.dirname cuts string at wrong index with unicode strings
MacRuby
ruby-noreply at macosforge.org
Thu Feb 4 00:26:30 PST 2010
#602: File.dirname cuts string at wrong index with unicode strings
------------------------------------+---------------------------------------
Reporter: mark.hubbart@… | Owner: lsansonetti@…
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/>
More information about the MacRuby-devel
mailing list