fix iconv output of surrogate pairs in ucs2
authorRich Felker <dalias@aerifal.cx>
Tue, 19 Dec 2017 03:33:51 +0000 (22:33 -0500)
committerRich Felker <dalias@aerifal.cx>
Tue, 19 Dec 2017 03:33:51 +0000 (22:33 -0500)
commit628cf979b249fa76a80962e2eefe05073216a4db
tree708382f79168a95485809a5d39a357a419fd566c
parent95c6044e2ae85846330814c4ac5ebf4102dbe02c
fix iconv output of surrogate pairs in ucs2

in the unified code for handling utf-16 and ucs2 output, the check for
ucs2 wrongly looked at the source charset rather than the destination
charset.
src/locale/iconv.c