pp_quotemeta(): Use more explicit macro
authorKarl Williamson <public@khwilliamson.com>
Wed, 15 Feb 2012 17:04:10 +0000 (10:04 -0700)
committerKarl Williamson <public@khwilliamson.com>
Thu, 16 Feb 2012 01:02:35 +0000 (18:02 -0700)
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.

pp.c

diff --git a/pp.c b/pp.c
index ae1eb11..b12772c 100644 (file)
--- 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++;
            }