]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - pcre/pcre_exec.cpp
JavaScriptCore-621.1.tar.gz
[apple/javascriptcore.git] / pcre / pcre_exec.cpp
index 8ca2eb4b79efddf053cdfc4b56733f96f9e12132..50973d02c2d9d182ed15d27ddaa0f204012f8136 100644 (file)
@@ -198,7 +198,7 @@ static void pchars(const UChar* p, int length, bool isSubject, const MatchData&
         length = md.endSubject - p;
     while (length-- > 0) {
         int c;
-        if (isprint(c = *(p++)))
+        if (isASCIIPrintable(c = *(p++)))
             printf("%c", c);
         else if (c < 256)
             printf("\\x%02x", c);