Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 16f685c

Browse files
craigberryrurban
authored andcommitted
Fix missing break in tovmsspec.
When encountering a question mark in a filespec being converted from Unix to VMS format, we were inadvertently adding an escaped space because of a missing break in a switch. (cherry picked from commit 774e463)
1 parent 5b1a920 commit 16f685c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ext/VMS-Filespec/t/filespec.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ foo-bar-0^.01/ vmsify [.foo-bar-0_01] [.foo-bar-0^.01]
137137
+foo.tmp vmsify ^+foo.tmp ^
138138
../foo\ \ bar/ vmsify [-.foo^_^_bar] ^
139139
./foo.tmp vmsify []foo.tmp ^
140+
x/r*??????? vmsify [.x]r*??????? ^
140141
141142
# Fileifying directory specs
142143
__down_:[__the_.__garden_.__path_] fileify __down_:[__the_.__garden_]__path_.dir;1 ^

vms/vms.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8731,6 +8731,7 @@ int_tovmsspec(const char *path, char *rslt, int dir_flag, int * utf8_flag)
87318731
else
87328732
*(cp1++) = '?';
87338733
cp2++;
8734+
break;
87348735
case ' ':
87358736
if (cp2 >= path && (cp2 == path || *(cp2-1) != '^')) /* not previously escaped */
87368737
*(cp1)++ = '^';

0 commit comments

Comments
 (0)