Subject: | Petal 2.17 problem with MSWin32 filename |
The subroutine _file_path concat $base_dir and $file,
but on MSWin32, both could be absolute pathname (starting by a disk letter)
on different disk.
In the following trace,
"D:\Documents\DEV\parrot\svn\branches\leo-ctx5"
"c:/PXPerl/site/lib/Test/TAP/HTMLMatrix.pm"
This is perl, v5.8.7 built for MSWin32-x86-multi-thread
Error: Cannot find C:\PXPerl\site\lib\Test\TAP\HTMLMatrix\template.html in D:\Documents\DEV\parrot\svn\branches\leo-ctx5. (typo? permission problem?) at c:/PXPerl/site/lib/Petal.pm line 564
Petal::_file_path('Petal=HASH(0x230e068)') called at c:/PXPerl/site/lib/Petal.pm line 536
Petal::_file_path_with_macro('Petal=HASH(0x230e068)') called at c:/PXPerl/site/lib/Petal.pm line 633
Petal::_code_memory_cached('Petal=HASH(0x230e068)') called at c:/PXPerl/site/lib/Petal.pm line 367
eval {...} called at c:/PXPerl/site/lib/Petal.pm line 361
Petal::process('Petal=HASH(0x230e068)', 'page', 'Test::TAP::HTMLMatrix=ARRAY(0x1d998e4)') called at c:/PXPerl/site/lib/Test/TAP/HTMLMatrix.pm line 70
Test::TAP::HTMLMatrix::html('Test::TAP::HTMLMatrix=ARRAY(0x1d998e4)') called at t\harness line 177
Petal object dump:
==================
$VAR1 = bless( {
'decode_charset' => 'utf8',
'input' => 'XHTML',
'file' => 'C:\\PXPerl\\site\\lib\\Test\\TAP\\HTMLMatrix\\template.html',
'encode_charset' => 'utf8',
'output' => 'XHTML'
}, 'Petal' );
Stack trace:
============
at c:/PXPerl/site/lib/Petal.pm line 373
Petal::process('Petal=HASH(0x230e068)', 'page', 'Test::TAP::HTMLMatrix=ARRAY(0x1d998e4)') called at c:/PXPerl/site/lib/Test/TAP/HTMLMatrix.pm line 70
Test::TAP::HTMLMatrix::html('Test::TAP::HTMLMatrix=ARRAY(0x1d998e4)') called at t\harness line 177
Template perl code dump:
========================
(no dump available)
François Perrad (PAUSE ID : PERRAD)