The original patch missed a piece. This is the correct one Ze'ev Atlas
From: Ze'ev Atlas <zatlas1@???>
To: Pcre Exim <pcre-dev@???>; Philip Hazel <ph10@???>
Sent: Sunday, July 5, 2015 4:14 PM
Subject: Printing EBCDIC code page version
Hi allI would like to add a functionality under z/OS in which the pcre2test would also print the guessed code page with option -C. This functionality is confined to the z/OS port only where my function is available. The guessing process is somewhat extended logic to the process described in the perlebcdic document (I find one more codepage). My documentation would elaborate on the issue that there is no foolproof way to know, thus:
IBM1140 = cp037, but could also be (locale) cp424...IBM1047 could be (locale) cp500, cp875, IBM1026...posix-bc is a world unto itselfIBM285 is also a world unto iutself :)
so please examine the patch
Ze'ev Atlas