[MacRuby] #1028: Strings generated by a directory listing of files with Unicode chars in name cannot be compared
MacRuby
ruby-noreply at macosforge.org
Mon Dec 6 05:46:53 PST 2010
#1028: Strings generated by a directory listing of files with Unicode chars in
name cannot be compared
----------------------------+-----------------------------------------------
Reporter: jazzbox@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.8
Component: MacRuby | Keywords:
----------------------------+-----------------------------------------------
in an empty directory:
{{{
touch rübe.txt; touch tomate.txt
}}}
files with Unicode-characters give false result:
{{{
macruby -e 'p Dir["r*.txt"].first == "rübe.txt"'
false
}}}
without Unicode chars everything is fine:
{{{
macruby -e 'p Dir["t*.txt"].first == "tomate.txt"'
true
}}}
All strings have the same encoding: #<Encoding:UTF-8>
--
Ticket URL: <http://www.macruby.org/trac/ticket/1028>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list