Make Pod::Html::_unixify unescape dots on VMS.
authorCraig A. Berry <craigberry@mac.com>
Sun, 6 Jan 2013 22:27:50 +0000 (16:27 -0600)
committerCraig A. Berry <craigberry@mac.com>
Sun, 6 Jan 2013 22:30:03 +0000 (16:30 -0600)
Dots in directory names must be escaped in native syntax, but those
escapes confuse various things if left in during a conversion to
Unix syntax.

ext/Pod-Html/lib/Pod/Html.pm

index c789522..5b4c51c 100644 (file)
@@ -3,7 +3,7 @@ use strict;
 require Exporter;
 
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
-$VERSION = 1.16;
+$VERSION = 1.17;
 @ISA = qw(Exporter);
 @EXPORT = qw(pod2html htmlify);
 @EXPORT_OK = qw(anchorify);
@@ -696,6 +696,7 @@ sub _unixify {
     $full_path = File::Spec::Unix->catfile(File::Spec::Unix->catdir(@dirs),
                                            $file);
     $full_path =~ s|^\/|| if $^O eq 'MSWin32'; # C:/foo works, /C:/foo doesn't
+    $full_path =~ s/\^\././g if $^O eq 'VMS'; # unescape dots
     return $full_path;
 }