bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] ability to tag generated files with the right ccsid o


From: Mike Fulton
Subject: [bug-gnu-libiconv] ability to tag generated files with the right ccsid on z/OS
Date: Mon, 3 Apr 2023 14:04:37 -0700

Hi,

One of the things I would like to do on z/OS is be able to exploit our file tagging
capabilities in the file system for iconv.

For most cases, C programs can use 'auto-conversion' to convert files from
various EBCDIC SBCS code pages to ISO8859-1, but this only works if the 
file is tagged with a CCSID, otherwise the file is treated as binary. 

I created a first 'proof of concept' patch for just IBM-1047 that works fine, but only for 1047:
https://github.com/ZOSOpenTools/libiconvport/blob/main/tarball-patches/iconv.c.patch
It would need to be fleshed out to properly support the other CCSIDs.
I expect someone on z/OS has already done the mapping of iconv 'to' pages to
integral CCSIDs, but if not, I could provide that. 

Is a z/OS specific enhancement something that would be considered for libiconv?

Thanks, Mike

reply via email to

[Prev in Thread] Current Thread [Next in Thread]