checkpoint. more CUnicode fixes.
This commit is contained in:
parent
2fa9b263f9
commit
1fd07567cc
|
@ -244,11 +244,11 @@ CUnicode::UTF8ToText(const CString& src, bool* errors)
|
||||||
*dst++ = '?';
|
*dst++ = '?';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
dst += len;
|
dst += mblen;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*dst = '\0';
|
*dst++ = '\0';
|
||||||
CString text(mbs);
|
CString text(mbs, dst - mbs);
|
||||||
|
|
||||||
// clean up
|
// clean up
|
||||||
delete[] mbs;
|
delete[] mbs;
|
||||||
|
|
Loading…
Reference in New Issue