Add code to show EBCDIC code page for native z/OS.

This commit is contained in:
Philip.Hazel 2015-07-06 16:14:04 +00:00
parent af23d161eb
commit d721fd7416
1 changed files with 11 additions and 0 deletions

View File

@ -66,6 +66,14 @@ it references only the enabled library functions. */
#include <locale.h> #include <locale.h>
#include <errno.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 #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif
@ -6454,6 +6462,9 @@ printf("Compiled with\n");
#ifdef EBCDIC #ifdef EBCDIC
printf(" EBCDIC code support: LF is 0x%02x\n", CHAR_LF); 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 #endif
#ifdef SUPPORT_PCRE2_8 #ifdef SUPPORT_PCRE2_8