提交 6a4cfbdb 编写于 作者: R Rich Felker

fix iconv conversion to legacy 8bit codepages

this seems to have been a simple copy-and-paste error from the code
for converting from legacy codepages.
上级 59b481d9
...@@ -316,8 +316,8 @@ size_t iconv(iconv_t cd0, char **restrict in, size_t *restrict inb, char **restr ...@@ -316,8 +316,8 @@ size_t iconv(iconv_t cd0, char **restrict in, size_t *restrict inb, char **restr
} }
d = c; d = c;
for (c=0; c<128-totype; c++) { for (c=0; c<128-totype; c++) {
if (d == legacy_chars[ map[c*5/4]>>2*c%8 | if (d == legacy_chars[ tomap[c*5/4]>>2*c%8 |
map[c*5/4+1]<<8-2*c%8 & 1023 ]) { tomap[c*5/4+1]<<8-2*c%8 & 1023 ]) {
c += 128; c += 128;
goto revout; goto revout;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册