linux PIString fix

This commit is contained in:
2022-04-25 23:44:30 +03:00
parent 892edb7d5b
commit d6ba51e4bc

View File

@@ -205,7 +205,7 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) {
UErrorCode e((UErrorCode)0);
UConverter * cc = ucnv_open(codepage, &e);
if (cc) {
if (s == -1) s = strlen(s);
if (s == -1) s = strlen(c);
enlarge(s);
// UChar * ucs = new UChar[s];
// memset(ucs, 0, s * sizeof(UChar));