Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Module-Starter CPAN distribution.

Report information
The Basics
Id: 12130
Status: resolved
Priority: 0/
Queue: Module-Starter

People
Owner: rjbs [...] cpan.org
Requestors: johanl [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.38
Fixed in: (no value)



Subject: Test file with invalid \ on Windows
On Windows, when I create a module, MS creates a test file 00-load.t with a diag() that contains the file name of perl.exe. That file name contains unescaped \ which triggers warnings. Example: diag( "Testing Win32::Word::FromHTML $Win32::Word::FromHTML::VERSION, Perl 5.008003, C:\appl\dev\mod_perl\Perl\bin\perl.exe" ); Suggestion: Either quotemeta the string or s|\\|/|g
From: ewilhelm [...] sbcglobal.net
[guest - Sun Apr 3 13:11:19 2005]: Show quoted text
> On Windows, ... triggers warnings.
Show quoted text
> diag( "Testing Win32::Word::FromHTML $Win32::Word::FromHTML::VERSION, > Perl 5.008003, C:\appl\dev\mod_perl\Perl\bin\perl.exe" );
The test shouldn't read like that should it? My 1.38 gives this: diag( "Testing My::Junk $My::Junk::VERSION, Perl 5.008003, $^X"); Right? (note the variable $^X is not expanded) Is this 1.38? (no, you've got 1.36 there) Show quoted text
> Suggestion: Either quotemeta the string or s|\\|/|g
No. You don't want it expanded. You want the variable (presumambly this is a message about the machine on which the test is running, not the one on which it was created.) --Eric
Let me know if this problem persists with 1.40, please.