mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 12:53:53 +08:00
checkpoint. more CUnicode fixes.
This commit is contained in:
@@ -244,11 +244,11 @@ CUnicode::UTF8ToText(const CString& src, bool* errors)
|
||||
*dst++ = '?';
|
||||
}
|
||||
else {
|
||||
dst += len;
|
||||
dst += mblen;
|
||||
}
|
||||
}
|
||||
*dst = '\0';
|
||||
CString text(mbs);
|
||||
*dst++ = '\0';
|
||||
CString text(mbs, dst - mbs);
|
||||
|
||||
// clean up
|
||||
delete[] mbs;
|
||||
|
||||
Reference in New Issue
Block a user