Re: [pcre-dev] EBCDIC many faces

Góra strony
Delete this message
Autor: Ze'ev Atlas
Data:  
Dla: pcre-dev@exim.org
Temat: Re: [pcre-dev] EBCDIC many faces
I guess that supply a conversion function (and API for non C users) is my only option... yes the second option is too much maintenanceOnce fully recovered I will work on it Ze'ev Atlas


      From: "ph10@???" <ph10@???>
 To: Ze'ev Atlas <zatlas1@???> 
Cc: Pcre Exim <pcre-dev@???>
 Sent: Friday, October 20, 2017 11:47 AM
 Subject: Re: EBCDIC many faces


On Thu, 19 Oct 2017, Ze'ev Atlas wrote:

> I am weighing my next step after realizing that the special characters
> for pattern cannot really change in runtime while being the most
> abused by IBM. IBM supplys a set of function that allow me to convert
> the input (string and pattern) from whatever EBCDIC codepage to the
> desired one.  But in order not to run it umpteen times I need to put
> it in front of the PCRE so all the functions will see the converted
> strings.  I cannot put the onus on the users as most of them use COBOL
> and are not sophisticated enougj Any advice will be wellcome


I sympathize with your position! It looks as though you can do nothing
other than put the conversion function in front of the PCRE functions,
and also, I suppose, on the output as well, to convert back. Ugh!

Alternatively, could you supply different versions of PCRE2, compiled
with different code pages? Or is this too much extra maintenance?

Philip

--
Philip Hazel