Revision: 305
http://www.exim.org/viewvc/pcre2?view=rev&revision=305
Author: ph10
Date: 2015-07-06 17:14:04 +0100 (Mon, 06 Jul 2015)
Log Message:
-----------
Add code to show EBCDIC code page for native z/OS.
Modified Paths:
--------------
code/trunk/src/pcre2test.c
Modified: code/trunk/src/pcre2test.c
===================================================================
--- code/trunk/src/pcre2test.c 2015-07-06 16:07:54 UTC (rev 304)
+++ code/trunk/src/pcre2test.c 2015-07-06 16:14:04 UTC (rev 305)
@@ -66,6 +66,14 @@
#include <locale.h>
#include <errno.h>
+#if defined NATIVE_ZOS
+#include "pcrzosfs.h"
+/* That header is not included in the main PCRE2 distribution because other
+apparatus is needed to compile pcre2test for z/OS. The header can be found in
+the special z/OS distribution, which is available from
www.zaconsultants.net or
+from
www.cbttape.org. */
+#endif
+
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
@@ -6454,7 +6462,10 @@
#ifdef EBCDIC
printf(" EBCDIC code support: LF is 0x%02x\n", CHAR_LF);
+#if defined NATIVE_ZOS
+printf(" EBCDIC code page %s or similar\n", pcrz_cpversion());
#endif
+#endif
#ifdef SUPPORT_PCRE2_8
printf(" 8-bit support\n");