fix iconv conversion to UTF-32 with implicit (big) endianness
authorWill Dietz <w@wdtz.org>
Thu, 3 May 2018 18:44:53 +0000 (13:44 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 9 May 2018 20:27:46 +0000 (16:27 -0400)
commit99f4237a691349b24afbed29abf33124b89c1ea3
treebd587f14955b932ad1d0372ef6bdac7001dfccd5
parent55a661ff5ec5c8192091ec0bd74424500761b08d
fix iconv conversion to UTF-32 with implicit (big) endianness

maintainer's notes:

commit 95c6044e2ae85846330814c4ac5ebf4102dbe02c split UTF-32 and
UTF-32BE but neglected to add a case for the former as a destination
encoding, resulting in it wrongly being handled by the default case.
the intent was that the value of the macro be chosen to encode "big
endian" in the low bits, so that no code would be needed, but this was
botched; instead, handle it the way UCS2 is handled.
src/locale/iconv.c