Commit ca208843 authored by deuce's avatar deuce
Browse files

Fix UTF-8 to Codepage string conversion to use the codepage-specific

codepoint to codepage translation.
parent e62e4486
......@@ -1865,7 +1865,7 @@ utf8_to_cpstr(const uint8_t *utf8str, char unmapped, size_t inlen, size_t *outle
idx += read_cp(&utf8str[idx], &codepoint);
if (codepoint == 0xffff || codepoint == 0xfffe)
goto error;
*(rp++) = cptable_from_unicode_cpoint(codepoint, unmapped, cpdef);
*(rp++) = cpdef->from_unicode_cpoint(codepoint, unmapped, cpdef);
*rp = 0;
if (outlen)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment