mirror of
git://git.musl-libc.org/musl
synced 2024-12-26 08:32:26 +00:00
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.
This commit is contained in:
parent
59b481d970
commit
6a4cfbdbe7
@ -316,8 +316,8 @@ size_t iconv(iconv_t cd0, char **restrict in, size_t *restrict inb, char **restr
|
||||
}
|
||||
d = c;
|
||||
for (c=0; c<128-totype; c++) {
|
||||
if (d == legacy_chars[ map[c*5/4]>>2*c%8 |
|
||||
map[c*5/4+1]<<8-2*c%8 & 1023 ]) {
|
||||
if (d == legacy_chars[ tomap[c*5/4]>>2*c%8 |
|
||||
tomap[c*5/4+1]<<8-2*c%8 & 1023 ]) {
|
||||
c += 128;
|
||||
goto revout;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user