summaryrefslogtreecommitdiff
path: root/ext/Pod-Html
diff options
context:
space:
mode:
authorRicardo Signes <rjbs@cpan.org>2012-02-21 22:19:56 -0500
committerRicardo Signes <rjbs@cpan.org>2012-02-21 23:42:34 -0500
commitb581a1f73be55ae99bb4ce6f49883b0b717b5142 (patch)
tree03af2b502e21f35ebb2eefddb5b46f5718f361ef /ext/Pod-Html
parent8d132c8e8666728992a21bfb759cc0613408a653 (diff)
downloadperl-b581a1f73be55ae99bb4ce6f49883b0b717b5142.tar.gz
unixify the --outfile arg to pod2html
I think we probably need a more systematic regimen of of unixify calls, but for now, this gets tests passing on Win32.
Diffstat (limited to 'ext/Pod-Html')
-rw-r--r--ext/Pod-Html/lib/Pod/Html.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/Pod-Html/lib/Pod/Html.pm b/ext/Pod-Html/lib/Pod/Html.pm
index e663281828..d2c2cb2955 100644
--- a/ext/Pod-Html/lib/Pod/Html.pm
+++ b/ext/Pod-Html/lib/Pod/Html.pm
@@ -289,6 +289,12 @@ sub pod2html {
$Htmlroot = "" if $Htmlroot eq "/";
$Htmldir =~ s#/\z##;
+ # I think this, and many other unixifications, belongs in
+ # parse_command_line or some other higher-level location to get them all
+ # unixified at once. Right now, I think we may be unixifying things too
+ # late and ad hoc. -- rjbs, 2012-02-21
+ $Htmlfile = _unixify($Htmlfile);
+
if ( $Htmlroot eq ''
&& defined( $Htmldir )
&& $Htmldir ne ''