summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/pcre
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/pcre')
-rw-r--r--JavaScriptCore/pcre/pcre_exec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/JavaScriptCore/pcre/pcre_exec.cpp b/JavaScriptCore/pcre/pcre_exec.cpp
index 8ca2eb4..50973d0 100644
--- a/JavaScriptCore/pcre/pcre_exec.cpp
+++ b/JavaScriptCore/pcre/pcre_exec.cpp
@@ -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);