]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/csrsbcs.cpp
ICU-64260.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / csrsbcs.cpp
index 0b0d8967e7d69055c7588d7a80609e0600b6e17f..c381958540837ecd40a7ef08bc1cefafafee523f 100644 (file)
@@ -902,6 +902,10 @@ UBool CharsetRecog_8859_1::match(InputText *textIn, CharsetMatch *results) const
             bestConfidenceSoFar = confidence;
         }
     }
+    if (bestConfidenceSoFar < 10 && textIn->fOnlyTypicalASCII) { // rdar://56373519
+        bestConfidenceSoFar = 15;
+        results->set(textIn, this, bestConfidenceSoFar, name);
+    }
     return (bestConfidenceSoFar > 0);
 }