Autor: Ze'ev Atlas Datum: To: pcre exim Betreff: Re: [pcre-dev] Printing EBCDIC code page version
Thank you
Yes the function is in pcrzosfs.h with a few other zos specialized functions used in pcre2grep, also with same #ifdef...#endif.
The issue that brought in the need for that is that EBCDIC has quite a few code pages. Some are justified as servong locale needs (Turkish, Greek, Hebrew, some european needs, etc.) But some are bordering in the bizarre and were attempts to fix issues with their predecessors, attemots that created more confusion.
The literature make you to believe that cp037 was largely abandoned in favor of IBM1047 in the US. A short reality check shows that this is probably not the case... however the C compiler itself works in IBM1047.
Zeev
Sent from Yahoo Mail on Android
From:"ph10@???" <ph10@???>
Date:Mon, Jul 6, 2015 at 6:23 AM
Subject:Re: Printing EBCDIC code page version
On Sun, 5 Jul 2015, Ze'ev Atlas wrote:
> 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
That's a very small patch, which I am happy to include. I assume the
pcrz_cpversion() function to which it refers is contained in the
pcrzosfs.h file.