toke.c: An EBCDIC fix
authorKarl Williamson <public@khwilliamson.com>
Sat, 13 Apr 2013 18:55:09 +0000 (12:55 -0600)
committerKarl Williamson <public@khwilliamson.com>
Thu, 29 Aug 2013 15:56:06 +0000 (09:56 -0600)
toCTRL(0..31) yields a printing character.  This is different from
toCTRL(control) on EBCDIC machines.

toke.c

diff --git a/toke.c b/toke.c
index d02019e..37ed7f1 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -586,7 +586,7 @@ S_missingterm(pTHX_ char *s)
        if (nl)
            *nl = '\0';
     }
-    else if (isCNTRL(PL_multi_close)) {
+    else if ((U8) PL_multi_close < 32) {
        *tmpbuf = '^';
        tmpbuf[1] = (char)toCTRL(PL_multi_close);
        tmpbuf[2] = '\0';