summaryrefslogtreecommitdiff
path: root/pcre_printint.src
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-03-17 21:16:01 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-03-17 21:16:01 +0000
commitf6cacbfecd16ac9d19ee6fe6c26c107ee4846b1c (patch)
treefb3166c26b8f211814f8302719f5bd93842aa575 /pcre_printint.src
parent8d719b57aa95b8a2baebd8fd13c6b80c2da84680 (diff)
downloadpcre-f6cacbfecd16ac9d19ee6fe6c26c107ee4846b1c.tar.gz
Add support for UTF-8 in EBCDIC environments.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@391 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_printint.src')
-rw-r--r--pcre_printint.src6
1 files changed, 5 insertions, 1 deletions
diff --git a/pcre_printint.src b/pcre_printint.src
index 98b42aa..5f45fc1 100644
--- a/pcre_printint.src
+++ b/pcre_printint.src
@@ -6,7 +6,7 @@
and semantics are as close as possible to those of the Perl 5 language.
Written by Philip Hazel
- Copyright (c) 1997-2008 University of Cambridge
+ Copyright (c) 1997-2009 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
@@ -54,7 +54,11 @@ hexadecimal. We don't use isprint() because that can vary from system to system
(even without the use of locales) and we want the output always to be the same,
for testing purposes. This macro is used in pcretest as well as in this file. */
+#ifdef EBCDIC
+#define PRINTABLE(c) ((c) >= 64 && (c) < 255)
+#else
#define PRINTABLE(c) ((c) >= 32 && (c) < 127)
+#endif
/* The table of operator names. */