diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-06-01 21:50:17 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-06-01 21:50:17 -0400 |
commit | 165a1e37a570422c3f3f816a734bfea0366982e5 (patch) | |
tree | 924bb2601d8677c9da099dbedb338a0fd7834b1d /include/dlfcn.h | |
parent | 99f4237a691349b24afbed29abf33124b89c1ea3 (diff) | |
download | musl-165a1e37a570422c3f3f816a734bfea0366982e5.tar.gz musl-165a1e37a570422c3f3f816a734bfea0366982e5.tar.xz musl-165a1e37a570422c3f3f816a734bfea0366982e5.zip |
fix iconv mapping of big5-hkscs characters that map to two unicode chars
this case is handled with a recursive call to iconv using a specially-constructed conversion descriptor. the constant 0 was used as the offset for utf-8, since utf-8 appears first in the charmaps table, but the offset used needs to point into the charmap entry, past the name/aliases at the beginning, to the byte identifying the encoding. as a result of this error, junk was produced. instead, call find_charmap so we don't have to hard-code a nontrivial offset. with this change, the code has been tested and found to work in the case of converting the affected hkscs characters to utf-8.
Diffstat (limited to 'include/dlfcn.h')
0 files changed, 0 insertions, 0 deletions