diff --git a/extensions/wallet/src/wallet.cpp b/extensions/wallet/src/wallet.cpp index c09658837610..9ac343e843ba 100644 --- a/extensions/wallet/src/wallet.cpp +++ b/extensions/wallet/src/wallet.cpp @@ -1667,7 +1667,7 @@ static nsString& Strip(const nsString& text, nsString& stripText) { for (PRUint32 i=0; i'~') { + if (nsCRT::IsAsciiAlpha(c) || nsCRT::IsAsciiDigit(c) || c>'~') { stripText += c; } } @@ -2134,7 +2134,7 @@ wallet_ResolvePositionalSchema(nsIDOMNode* elementNode, nsString& schema) { // } // } else { // /* failed to get the i18n interfaces, so just treat latin characters */ - if (isalpha(c) || isdigit(c)) { + if (nsCRT::IsAsciiAlpha(c) || nsCRT::IsAsciiDigit(c)) { charFound = PR_TRUE; break; // } @@ -2333,7 +2333,7 @@ wallet_GetSchemaFromDisplayableText(nsIDOMNode* elementNode, nsString& schema, P nsAutoString temp; for (i=0; i