summaryrefslogtreecommitdiff
path: root/utf8Routines.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-11-12 21:20:01 +0000
committerDave Hibberd <hibby@debian.org>2024-11-12 21:20:01 +0000
commit7d1deaae3884a9ca8bdba9df5c7b317171ab3b40 (patch)
tree4bfe97c8473819c53b235380aaf241009c52e8c6 /utf8Routines.c
parent424c0bd3e14d3ddda6c2d945b6465d51c462c76b (diff)
New upstream version 6.0.24.50upstream/6.0.24.50
Diffstat (limited to 'utf8Routines.c')
-rw-r--r--utf8Routines.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utf8Routines.c b/utf8Routines.c
index 6e0d17e..c0f9ca3 100644
--- a/utf8Routines.c
+++ b/utf8Routines.c
@@ -548,8 +548,8 @@ int TrytoGuessCode(unsigned char * Char, int Len)
if (Above127 == 0) // DOesn't really matter!
return 1252;
- if (Above127 == LineDraw)
- return 437; // If only Line Draw chars, assume line draw
+ if (LineDraw > ((Above127 * 9) / 10))
+ return 437; // If mainly Line Draw chars, assume line draw
// If mainly below 128, it is probably Latin if mainly above, probably Cyrillic