[MacRuby-devel] [MacRuby] #308: "too short multibyte code string" when using Pathname
MacRuby
ruby-noreply at macosforge.org
Sat Aug 8 17:21:57 PDT 2009
#308: "too short multibyte code string" when using Pathname
-------------------------------+--------------------------------------------
Reporter: tjw@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
-------------------------------+--------------------------------------------
Possibly related, but simpler case of
https://www.macruby.org/trac/ticket/303
See the attached script, which hits a regex parse error when run.
Digging around, it looks like this might start from lib/pathname.rb in
#initialize:
if /\0/ =~ @path
raise ArgumentError, "pathname contains \\0: #{@path.inspect}"
end
The /\0/ fails to parse and a RegexpError error is thrown.
--
Ticket URL: <http://www.macruby.org/trac/ticket/308>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list