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 11:42:33 UTC

[tika] branch main 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 main
in repository https://gitbox.apache.org/repos/asf/tika.git


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

commit e9ee34d9530e28e95d8547d2034eab8323f49ad9
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-parser-modules/tika-parser-text-module/src/main/java/org/apache/tika/parser/txt/CharsetRecog_sbcs.java b/tika-parser-modules/tika-parser-text-module/src/main/java/org/apache/tika/parser/txt/CharsetRecog_sbcs.java
index 951082d..274accd 100644
--- a/tika-parser-modules/tika-parser-text-module/src/main/java/org/apache/tika/parser/txt/CharsetRecog_sbcs.java
+++ b/tika-parser-modules/tika-parser-text-module/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");
         }
     }