diff --git a/src_main/core/pichar.cpp b/src_main/core/pichar.cpp index a72b0cd3..4a092787 100644 --- a/src_main/core/pichar.cpp +++ b/src_main/core/pichar.cpp @@ -80,9 +80,9 @@ ushort charFromCodepage(const char * c, int size, const char * codepage, int * t wchar_t wc(0); mbtowc(0, 0, 0); // reset mbtowc ret = mbtowc(&wc, c, size); + printf("mbtowc = %d\n", ret); if (ret < 1 || ret > (int)sizeof(ushort)) return 0; - else return wc; - return c[0]; + return wc; }