linux PIString fix
This commit is contained in:
@@ -248,7 +248,7 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) {
|
|||||||
mbsrtowcs(&wstr[0], pc, len+1, &state);
|
mbsrtowcs(&wstr[0], pc, len+1, &state);
|
||||||
if (c_) free(c_);
|
if (c_) free(c_);
|
||||||
enlarge(len);
|
enlarge(len);
|
||||||
for (size_t i=0; i<len; ++i) (*this)[old_sz+i] = wstr[i];
|
for (size_t i=0; i<len; ++i) (*this)[old_sz+i] = PIChar(wstr[i]);
|
||||||
// //qDebug() << "FromChars done" << size();
|
// //qDebug() << "FromChars done" << size();
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user