bug-gnulib
[Top][All Lists]
Advanced

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

Re: z/OS, iconv, and charset aliases


From: Bruno Haible
Subject: Re: z/OS, iconv, and charset aliases
Date: Fri, 20 Dec 2019 09:19:46 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-166-generic; KDE/5.18.0; x86_64; ; )

Hi Daniel,

> I've attached a file with the output of "iconv -l". The names appear 
> consistent with what's in iconv_open-aix.gperf.

Thanks. From this, I think we can equate the following vendor names with
GNU canonical names:


Vendor name  Canonical name          References

00367        ASCII, ANSI_X3.4-1968   https://en.wikipedia.org/wiki/Code_page_367
                                     
https://haible.de/bruno/charsets/conversion-tables/ASCII.html
ISO8859-1    ISO-8859-1
ISO8859-2    ISO-8859-2
ISO8859-4    ISO-8859-4
ISO8859-5    ISO-8859-5
ISO8859-6    ISO-8859-6
ISO8859-7    ISO-8859-7
ISO8859-8    ISO-8859-8
ISO8859-9    ISO-8859-9
ISO8859-13   ISO-8859-13
ISO8859-15   ISO-8859-15
IBM-437      CP437
IBM-850      CP850
IBM-852      CP852
IBM-855      CP855
IBM-856      CP856
IBM-861      CP861
IBM-862      CP862
IBM-864      CP864
IBM-866      CP866
IBM-869      CP869
TIS-620      CP874                   
https://haible.de/bruno/charsets/conversion-tables/Thai.html
IBM-922      CP922
IBM-eucJC    CP932
IBM-943      CP943
IBM-949      CP949
IBM-1046     CP1046
IBM-1124     CP1124
IBM-1125     CP1125
IBM-1250     CP1250
IBM-1251     CP1251
IBM-1252     CP1252
IBM-1253     CP1253
IBM-1254     CP1254
IBM-1255     CP1255
IBM-1256     CP1256
IBM-eucCN    GB2312
EUCJP        EUC-JP
IBM-eucKR    EUC-KR
IBM-eucTW    EUC-TW
BIG5         BIG5
IBM-936      GBK
TIS-620      TIS-620
UTF-8        UTF-8


Fortunately, all encodings listed as locale encodings in
"Table 3. Supported language-territory names and LT codes for ASCII locales"
of 
https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.cbcpx01/locnamc.htm
are in this list.

Omitting identical names on both sides (e.g. BIG5 BIG5), I arrive at the two
attached patches.


2019-12-20  Bruno Haible  <address@hidden>

        iconv_open: Add support for z/OS encoding names.
        Reported by Daniel Richard G. in
        <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
        * lib/iconv_open-zos.gperf: New file.
        * modules/iconv_open (Files): Add iconv_open-zos.gperf.
        (Makefile.am): Add rules for generating iconv_open-zos.h from it.
        * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
        * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
        * doc/posix-functions/iconv_open.texi: Mention z/OS.

2019-12-20  Bruno Haible  <address@hidden>

        localcharset: Add support for z/OS encoding names.
        * lib/localcharset.h: Mention which encodings are used as locale
        encodings on z/OS.


Attachment: 0001-iconv_open-Add-support-for-z-OS-encoding-names.patch
Description: Text Data

Attachment: 0002-localcharset-Add-support-for-z-OS-encoding-names.patch
Description: Text Data


reply via email to

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