summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-02-15 10:04:10 -0700
committerKarl Williamson <public@khwilliamson.com>2012-02-15 18:02:35 -0700
commitadfec83175578461303ab5cfcc90d37cb3114126 (patch)
tree08679ef700740ff48ea845a50ff057b45bee89af /pp.c
parent25093c956d0b9bf18415f717ee7eafa550809b89 (diff)
downloadperl-adfec83175578461303ab5cfcc90d37cb3114126.tar.gz
pp_quotemeta(): Use more explicit macro
Changing the macro to a differently-named equivalent stresses that only ASCII characters may escape from being quoted. That is, all non-ASCII are quoted.
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index ae1eb11abf..b12772c2de 100644
--- a/pp.c
+++ b/pp.c
@@ -4107,7 +4107,7 @@ PP(pp_quotemeta)
}
else {
while (len--) {
- if (!isALNUM(*s))
+ if (!isWORDCHAR_A(*s))
*d++ = '\\';
*d++ = *s++;
}