]> Savannah Git Hosting - gnulib.git/commit
iconv_open-utf-tests, iconv-tests: port to EBCDIC
authorDaniel Richard G <skunk@iSKUNK.ORG>
Wed, 17 Aug 2016 23:05:02 +0000 (16:05 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 18 Aug 2016 00:44:56 +0000 (17:44 -0700)
commit9015588ad066d32b224a697c21e7b1826f67709d
treed77d0d868ab406b03985c6796e198a9be96e625a
parentb21115ee906ce7693fd0949e2c4345365cabca7a
iconv_open-utf-tests, iconv-tests: port to EBCDIC

* tests/test-iconv-utf.c, tests/test-iconv.c:
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.
ChangeLog
tests/test-iconv-utf.c
tests/test-iconv.c