In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/c434e88d3bead3f9417903defe6f23a1ad0ca522?hp=4a9a56a75c57646b348598f90875415e994d2f65>

- Log -----------------------------------------------------------------
commit c434e88d3bead3f9417903defe6f23a1ad0ca522
Author: Craig A. Berry <[email protected]>
Date:   Tue Dec 4 07:23:57 2012 -0600

    Avoid some doubled escapes in tovmsspec.
    
    Since it's impossible to guarantee a filename is never makes
    multiple trips through the Unix-to-VMS converter, it's important
    not to escape characters that have already been escaped.
-----------------------------------------------------------------------

Summary of changes:
 vms/vms.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/vms/vms.c b/vms/vms.c
index 43496ef..b3201a4 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -8582,7 +8582,8 @@ static char *int_tovmsspec
          *(cp1++) = '?';
        cp2++;
     case ' ':
-       *(cp1)++ = '^';
+       if (cp2 > path && *(cp2-1) != '^') /* not previously escaped */
+           *(cp1)++ = '^';
        *(cp1)++ = '_';
        cp2++;
        break;
@@ -8666,7 +8667,8 @@ static char *int_tovmsspec
     case '|':
     case '<':
     case '>':
-       *(cp1++) = '^';
+       if (cp2 > path && *(cp2-1) != '^') /* not previously escaped */
+           *(cp1++) = '^';
        *(cp1++) = *(cp2++);
        break;
     case ';':

--
Perl5 Master Repository

Reply via email to