Subject: | "Build test" fails on ActivePerl/MSWin32 (tested 5.8.8 and 5.10.0) |
Running "Build test" fails on MSWin32 running ActiveState Perl v5.8.8 or
v5.10.0 when trying to access the rss file. The complete error is:
Couldn't read RSS for
file://C:\DOKUME~1\ADMINI~1\LOKALE~1\Temp\tQkwbNs2SS\test.xml:
The problem seems to be with backslash path notation on win32, as the
attached patch (replacing backslashes with slashes in the '-rss'
argument) works around the problem.
Subject: | test.out |
Message body not shown because it is not plain text.
Subject: | podcastfetch_pm.patch |
--- PodcastFetch.pm.org 2009-01-11 09:02:28.000000000 +0100
+++ PodcastFetch.pm 2009-01-11 09:01:54.000000000 +0100
@@ -259,6 +259,7 @@
my $self = bless {},ref $class || $class;
$self->base($args{-base} || '/tmp/podcasts');
$self->subdir($args{-subdir});
+ $args{-rss} =~ s!\\!/!g if( $args{-rss} =~ m!^file://[A-Z]:!i );
$self->rss($args{-rss} || croak 'please provide -rss argument');
$self->max($args{-max} );
$self->timeout($args{-timeout} || 30 );