Ticket #2180 (new bug)

Opened 10 years ago

Last modified 10 years ago

examples/nci/ls.pir broken

Reported by: bubaflub Owned by:
Priority: normal Milestone:
Component: none Version: 3.7.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

Running the example as it is currently gives:

Unknown param Signature t

current instr.: '_main' pc 3 (examples/nci/ls.pir:24)

With the applied patch (that fixes the problem with the t parameter) gives:

..
book

q.pod
on.pod
o#WInvalid character for UTF-8 encoding

current instr.: '_main' pc 117 (examples/nci/ls.pir:62)

Which I believe is a problem with the OrderedHash and how we are accessing the name of the directory being viewed.

A second problem is that it assumes we are running it from the root parrot directory and attempts to open the docs/ directory - if it is run from another directory it will segfault when trying to open a that non-existent directory.

Attachments

2180.patch Download (0.6 KB) - added by bubaflub 10 years ago.
quick patch for examples/nci/ls.pir

Change History

Changed 10 years ago by bubaflub

quick patch for examples/nci/ls.pir

Changed 10 years ago by NotFound

Fixed the 't' problem in 7a9e7ad4a6

I don't see the UTF-8 problem.

Changed 10 years ago by NotFound

Handle non existent dir condition in 91518de1ef

Note: See TracTickets for help on using tickets.