diff --git a/src_main/core/pistring.cpp b/src_main/core/pistring.cpp index 6774e51e..aa80228b 100755 --- a/src_main/core/pistring.cpp +++ b/src_main/core/pistring.cpp @@ -88,7 +88,7 @@ const int PIString::fromBaseN[] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - # define pisprintf(f, v) char ch[256]; memset(ch, 0, 256); sprintf_s(ch, 256, f, v); #endif #ifdef ANDROID -int wctomb(char * c, wchar_t w) {*c = ((char * )&w)[0]; return 1;} +//int wctomb(char * c, wchar_t w) {*c = ((char * )&w)[0]; return 1;} #endif PIString PIString::itos(const int num) {pisprintf("%d", num); return PIString(ch);} PIString PIString::ltos(const long num) {pisprintf("%ld", num); return PIString(ch);} @@ -215,12 +215,17 @@ void PIString::appendFromChars(const char * c, int s, const char * cp) { int sz; wchar_t wc; mbtowc(0,0,0); // reset mbtowc + //qDebug() << "FromChars ..."; while (s>0) { + //qDebug() << "0" << s; sz = mbtowc(&wc, c, s); + //qDebug() << "1" << sz; if (sz < 1) break; push_back(PIChar(int(wc))); c += sz; s -= sz; + //qDebug() << "2" << c; } + //qDebug() << "FromChars done" << size(); }