### history regarding win32
$vol =~ s/:$/|/ if ON_WIN32;
+ $vol =~ s/:// if ON_VMS;
+
### XXX i'm not sure what cases this is addressing.
### this comes straight from dmq's file:// patches
### for win32. --kane
### create a file URI. Make sure to split it by LOCAL rules
### and JOIN by unix rules, so we get a proper file uri
### otherwise, we might break win32. See bug #18702
- my $target = CREATE_FILE_URI->(
- File::Spec::Unix->catfile(
- File::Spec::Unix->catdir(
- File::Spec->splitdir( cwd() ),
- ),
- $base
- )
- );
+
+ my $cwd = cwd();
+ my $in_file;
+
+ if ($^O eq 'VMS') {
+ $in_file = File::Spec->catfile($cwd, $base);
+ ### Force UNIX syntax on VMS
+ $in_file = VMS::Filespec::unixify($in_file);
+ } else {
+ $in_file = File::Spec::Unix->catfile(
+ File::Spec::Unix->catdir(
+ File::Spec->spitdir( $cwd ),
+ ),
+ $base
+ )
+ }
+
+ my $target = CREATE_FILE_URI->($in_file);
my $fake = $cb->parse_module( module => $target );