#90581 Cyrillic is not autodetected by nsIStringCharsetDetector

r=nhotta sr=waterson
This commit is contained in:
shanjian%netscape.com 2001-08-07 19:08:00 +00:00
parent fcbaffa391
commit cbd97d1ef0
2 changed files with 2 additions and 1 deletions

View File

@ -168,6 +168,7 @@ NS_IMETHODIMP nsCyrXPCOMStringDetector::DoIt(const char* aBuf, PRUint32 aLen,
const char** oCharset, nsDetectionConfident &oConf)
{
mResult = nsnull;
mDone = PR_FALSE;
this->HandleData(aBuf, aLen);
this->DataEnd();
*oCharset=mResult;

View File

@ -89,6 +89,7 @@ class nsCyrillicDetector
virtual void DataEnd();
protected:
virtual void Report(const char* aCharset) = 0;
PRBool mDone;
private:
PRUint8 mItems;
@ -96,7 +97,6 @@ class nsCyrillicDetector
const char** mCharsets;
PRUint32 mProb[NUM_CYR_CHARSET];
PRUint8 mLastCls[NUM_CYR_CHARSET];
PRBool mDone;
};
class nsCyrXPCOMDetector :