This commit is contained in:
Andrey
2022-04-26 17:20:07 +03:00
parent 7ad520a1c3
commit f7d6302572

View File

@@ -221,7 +221,7 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) {
# else # else
std::wstring_convert<std::codecvt_utf8<char16_t>, char16_t> ucs2conv; std::wstring_convert<std::codecvt_utf8<char16_t>, char16_t> ucs2conv;
std::u16string ucs2 = ucs2conv.from_bytes(c, c+s); std::u16string ucs2 = ucs2conv.from_bytes(c, c+s);
enlarge(ucs2.size()); d.enlarge(ucs2.size());
ucs2.copy((char16_t *)d.data(old_sz), ucs2.size()); ucs2.copy((char16_t *)d.data(old_sz), ucs2.size());
# endif # endif
#endif #endif