don't assert on invalid text

This commit is contained in:
Glenn Maynard
2006-03-03 05:27:07 +00:00
parent 89d26b20ae
commit 579d797374
+4 -2
View File
@@ -1373,8 +1373,10 @@ static int UnicodeDoUpper( char *p, size_t iLen, const unsigned char pMapping[25
{
RString sOut;
wchar_to_utf8( iUpper, sOut );
ASSERT( sOut.size() == iStart );
memcpy( p, sOut.data(), sOut.size() );
if( sOut.size() == iStart )
memcpy( p, sOut.data(), sOut.size() );
else
WARN( ssprintf("UnicodeDoUpper: invalid character at \"%s\"", RString(p,iLen).c_str()) );
}
return iStart;