Bug 343741. Don't pass Unicode characters to isspace etc libc methods, they die on Windows. r+sr=mscott
git-svn-id: svn://10.0.0.236/trunk@202000 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -832,6 +832,12 @@ WordSplitState::ClassifyCharacter(PRInt32 aIndex, PRBool aRecurse) const
|
||||
if (charCategory == 5 || IsIgnorableCharacter(mDOMWordText[aIndex]))
|
||||
return CHAR_CLASS_WORD;
|
||||
|
||||
if (mDOMWordText[aIndex] > 255) {
|
||||
// Non-ASCII character so we can't use is* libc functions.
|
||||
// XXX this function needs work to handle general Unicode characters!!!
|
||||
return CHAR_CLASS_WORD;
|
||||
}
|
||||
|
||||
// all other whitespace chars, control chars, and most punctuation (with
|
||||
// several exceptions) are word separators. These exceptions are for
|
||||
// characters that can be considered part of a word if it is surrounded by
|
||||
|
||||
Reference in New Issue
Block a user