This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author roskakori
Recipients ezio.melotti, lemburg, roskakori
Date 2013-07-02.17:47:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372787231.53.0.326876214252.issue18348@psf.upfronthosting.co.za>
In-reply-to
Content
Currently Python includes a codec for EBCDIC international (cp500) but seems to be missing any further EBCDIC codecs. These encodings are widly used on mainframe platforms, popular in finance and insurance.

Descriptions of these codepages are available from IBM: <http://www-01.ibm.com/software/globalization/cp/cp_cpgid.html>. These descriptions also include mapping files although not in a format that can readily be processed by gencodec.py.

So instead I used the codecs included with Java 1.7 to generate mappings for gencodec.py. You can find them in the attached ZIP archive. As Java also runs on mainframe platforms, IBM should be interested in the Java codecs to be correct and complete.

The converter is available from <https://github.com/roskakori/CodecMapper>. To build the cp*.txt for EBCDIC, simply run:

$ git clone https://github.com/roskakori/CodecMapper.git
$ cd CodecMapper
$ ant ebcdic

IBM lists a large number of EBCDIC codepages, I only attached the ones listed in the German Wikipedia: <http://de.wikipedia.org/wiki/EBCDIC>. This also includes cp500 for comparison with your current cp500. And it lacks EDF03DRV because even Java does not support it.

Currently Java 1.7 supports 43 variants. To get a list of them, use:

$ ant list | grep -i ' ibm'

This would also fix issue 1097797: Encoding for Code Page 273 used by EBCDIC Germany Austria.
History
Date User Action Args
2013-07-02 17:47:11roskakorisetrecipients: + roskakori, lemburg, ezio.melotti
2013-07-02 17:47:11roskakorisetmessageid: <1372787231.53.0.326876214252.issue18348@psf.upfronthosting.co.za>
2013-07-02 17:47:11roskakorilinkissue18348 messages
2013-07-02 17:47:10roskakoricreate