Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the devel-nytprof CPAN distribution.

Report information
The Basics
Id: 43798
Status: resolved
Priority: 0/
Queue: devel-nytprof

People
Owner: Nobody in particular
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: 2.08



Subject: nytprof fails on Win32, tries to create illegally-named files
When I execute nytprofhtml, it tries to generate a HTML report based on the path to the directory that the profiler was run in. The result is a failure like the following Unable to open nytprof/Z:-opt-liveprice2-blib-lib-LP2-Filter-JSON.pm-sub.html for writing: No such file or directory When generating the report on Win32, you'll need to normalise out all of the characters that are illegal on Windows filesystems. The list of banned characters is qw{ / \ : * ? " < > | } but the only one you are likely to have a problem with is the colon, because it is legal in the full filesystem path, but illegal in a file or directory name. So you'll need to just add a s/:/_/ in the file name generator.
Thanks. Resolved in r688.