|
From: | Daniel Richard G. |
Subject: | Re: [PATCH] IBM z/OS + EBCDIC support |
Date: | Thu, 15 Oct 2015 00:49:35 -0400 |
Okay, I've split my changes into a set of patches, attached. These patches are orthogonal and may be applied in any order: gnulib-zos-ascii.patch: When in a non-ASCII environment, disable tests that assume ASCII. gnulib-zos-charset.patch: Added appropriately conditional #pragmas so that the test strings in test-iconv-utf.c are correctly interpreted in ASCII instead of EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be addressed in a more portable way by simply rewriting all the ASCII literal characters as octal escapes, but then you would lose the partial readability that the strings have now. Also, iconv_open() on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works. gnulib-zos-configure.patch: Changes to the Autoconf M4 code to support z/OS. Note that fclose() is broken in a different way on z/OS than it is on other systems, thus the special-case in fclose.m4. gnulib-zos-cpp.patch: General preprocessor-level changes to support z/OS. gnulib-zos-errno.patch: Accommodate z/OS errno code preferences. (I believe this should still be within spec; IBM is good at following the letter if not the spirit of such things.) gnulib-zos-pthread.patch: Rudimentary gl_thread support for z/OS. gnulib-zos-regex-argname.patch: "__string" is not a good name to use as an identifier on this system. A better fix would be to use a different name (why not just "s"?), provided this can be pushed to upstream glibc. gnulib-zos-strtod.patch: Address a couple quirks in the z/OS implementation of strtod(). --Daniel -- Daniel Richard G. || address@hidden My ASCII-art .sig got a bad case of Times New Roman.
gnulib-zos-ascii.patch
Description: Text Data
gnulib-zos-charset.patch
Description: Text Data
gnulib-zos-configure.patch
Description: Text Data
gnulib-zos-cpp.patch
Description: Text Data
gnulib-zos-errno.patch
Description: Text Data
gnulib-zos-pthread.patch
Description: Text Data
gnulib-zos-regex-argname.patch
Description: Text Data
gnulib-zos-strtod.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |