Ticket #308 (closed defect: fixed)
"too short multibyte code string" when using Pathname
| Reported by: | tjw@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.6 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


