diff -r 79b6a38edfc7 -r f2b774d78b4a ThirdParty/CharDet/chardet/latin1prober.py --- a/ThirdParty/CharDet/chardet/latin1prober.py Thu Nov 10 18:54:02 2016 +0100 +++ b/ThirdParty/CharDet/chardet/latin1prober.py Thu Nov 10 18:57:50 2016 +0100 @@ -129,11 +129,11 @@ if total < 0.01: confidence = 0.0 else: - confidence = ((self._mFreqCounter[3] / total) - - (self._mFreqCounter[1] * 20.0 / total)) + confidence = ((self._mFreqCounter[3] - self._mFreqCounter[1] * 20.0) + / total) if confidence < 0.0: confidence = 0.0 # lower the confidence of latin1 so that other more accurate # detector can take priority. - confidence = confidence * 0.5 + confidence = confidence * 0.73 return confidence