--- WINUCS.C.oirg Sat Oct 14 21:05:34 2006 +++ WINUCS.C Sat Oct 14 21:09:28 2006 @@ -1207,10 +1207,11 @@ { char *p; int i; +/* if (ucsdata && codepage == ucsdata->line_codepage && ucsdata->uni_tbl) { - /* Do this by array lookup if we can. */ + if (wclen < 0) { - for (wclen = 0; wcstr[wclen++] ;); /* will include the NUL */ + for (wclen = 0; wcstr[wclen++] ;); } for (p = mbstr, i = 0; i < wclen; i++) { wchar_t ch = wcstr[i]; @@ -1234,8 +1235,8 @@ assert(p - mbstr < mblen); } return p - mbstr; - } else - return WideCharToMultiByte(codepage, flags, wcstr, wclen, + } else*/ + return WideCharToMultiByte(950, flags, wcstr, wclen, mbstr, mblen, defchr, defused); }