You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2020/09/21 19:05:52 UTC

[tika] branch branch_1x updated: fix for TIKA-3200 contributed by alexey-lukashov (#362)

This is an automated email from the ASF dual-hosted git repository.

tallison pushed a commit to branch branch_1x
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/branch_1x by this push:
     new bb7009f  fix for TIKA-3200 contributed by alexey-lukashov (#362)
bb7009f is described below

commit bb7009fae8b2f9d3b9d3310e765a81fa7aead9df
Author: alexey-lukashov <lu...@gmail.com>
AuthorDate: Mon Sep 21 13:42:22 2020 +0200

    fix for TIKA-3200 contributed by alexey-lukashov (#362)
---
 .../src/main/java/org/apache/tika/parser/txt/CharsetRecog_sbcs.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tika-parsers/src/main/java/org/apache/tika/parser/txt/CharsetRecog_sbcs.java b/tika-parsers/src/main/java/org/apache/tika/parser/txt/CharsetRecog_sbcs.java
index 951082d..274accd 100644
--- a/tika-parsers/src/main/java/org/apache/tika/parser/txt/CharsetRecog_sbcs.java
+++ b/tika-parsers/src/main/java/org/apache/tika/parser/txt/CharsetRecog_sbcs.java
@@ -905,7 +905,7 @@ abstract class CharsetRecog_sbcs extends CharsetRecognizer {
 
         public CharsetMatch match(CharsetDetector det) {
             int confidence = match(det, ngrams, byteMap);
-            return confidence == 0 ? null : new CharsetMatch(det, this, confidence, getName(), "tr");
+            return confidence == 0 ? null : new CharsetMatch(det, this, confidence, getName(), "ru");
         }
     }