fix cannot convert cases

git-svn-id: svn://10.0.0.236/trunk@11230 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ftang%netscape.com 1998-09-28 19:24:13 +00:00
parent bc29f82bbb
commit e01b6671a1

View File

@ -1990,6 +1990,7 @@ PUBLIC uint32 INTL_TextToUnicode(
srclen -= scanlen, src += scanlen, ustr++, ubuflen--,validlen++)
{
uint16 i;
scanlen = 0;
if(*src < 0x20)
{
*ustr = (INTL_Unicode)(*src);
@ -2013,6 +2014,8 @@ PUBLIC uint32 INTL_TextToUnicode(
#ifdef STRICTUNICODETEST
XP_ASSERT(i!=num);
#endif
if(scanlen == 0)
scanlen = 1;
*ustr= NOMAPPING;
}
}