Skip to content

Commit

Permalink
Fix detecting Thai problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
yhfudev committed Jan 19, 2015
1 parent 39327f5 commit 07fdedf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nsUTF8Prober.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ nsProbingState nsUTF8Prober::HandleData(const char* aBuf, PRUint32 aLen)
return mState;
}

#define ONE_CHAR_PROB (float)0.50
//#define ONE_CHAR_PROB (float)0.50
/* use the value 0.547 so that the confident value may less than that of Thai when the file is encoded in windows-874 */
#define ONE_CHAR_PROB (float)0.547

float nsUTF8Prober::GetConfidence(void)
{
Expand Down

0 comments on commit 07fdedf

Please sign in to comment.