]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Check whether the choosen encoding requires byte swapping
authorWalter Dörwald <walter@livinglogic.de>
Thu, 30 Jan 2003 19:55:28 +0000 (19:55 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Thu, 30 Jan 2003 19:55:28 +0000 (19:55 +0000)
commitb4ff1113caaf849a2c8b3b2b17f1f2418cf6057c
tree4d033bb4ca7518a69dda1e75d78912bd901f8818
parent2b93c4c70820d0314e8e297c2817d9e03d73df62
Check whether the choosen encoding requires byte swapping
for this iconv() implementation in the init function.

For encoding: use a byteswapped version of the input if
neccessary.

For decoding: byteswap every piece returned by iconv()
if neccessary (but not those pieces returned from the
callback)

Comment out test_sane() in the test script, because
whether this works depends on whether byte swapping
is neccessary or not (an on Py_UNICODE_SIZE)
Lib/test/test_iconv_codecs.py
Modules/_iconv_codec.c