fix for unpack('u') failures on OS/390
authorPeter Prymmer <PPrymmer@factset.com>
Mon, 10 Aug 1998 16:58:22 +0000 (09:58 -0700)
committerGraham Barr <gbarr@pobox.com>
Sun, 20 Sep 1998 15:39:41 +0000 (15:39 +0000)
Message-Id: <9808102358.AA10616@forte.com>

p4raw-id: //depot/maint-5.005/perl@1793

pp.c

diff --git a/pp.c b/pp.c
index 35b1552..1320486 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -3574,7 +3574,7 @@ PP(pp_unpack)
                char hunk[4];
 
                hunk[3] = '\0';
-               len = (*s++ - ' ') & 077;
+               len = uudmap[*s++] & 077;
                while (len > 0) {
                    if (s < strend && ISUUCHAR(*s))
                        a = uudmap[*s++] & 077;