summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-04-13 12:55:09 -0600
committerKarl Williamson <public@khwilliamson.com>2013-08-29 09:56:06 -0600
commitca8b19a7e3b4dc718b3e607b8460ff6454a9beff (patch)
treef4e7424330ac581ef05032d5620144209f26c977 /toke.c
parent76e6dc3a786387b6174655bd76877e406a342e5b (diff)
downloadperl-ca8b19a7e3b4dc718b3e607b8460ff6454a9beff.tar.gz
toke.c: An EBCDIC fix
toCTRL(0..31) yields a printing character. This is different from toCTRL(control) on EBCDIC machines.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index d02019e655..37ed7f1ced 100644
--- 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';