summaryrefslogtreecommitdiff
path: root/i18nutil
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-06-21 09:57:49 +0300
committerخالد حسني <khaled@libreoffice.org>2023-06-21 11:51:39 +0200
commit10214546a8d0cf745a1d01c0ba3c699143f7d85f (patch)
tree6acb50d8c354e8bfd297848880228931e8cace84 /i18nutil
parent56e58e6a1280d9bdd23550ba998f14aef4980244 (diff)
Fix script classification of USCRIPT_WARANG_CITI
When the original code was introduced in: commit d83e115bae521fcf193978496d62dbc677a1d6ef Author: Martin Hosken <martin_hosken@sil.org> Date: Fri Mar 4 19:57:29 2011 +0700 USCRIPT_CODE_LIMIT was set to 146 and that what the original code wanted to classify as ScriptType::WEAK. ICU changes USCRIPT_CODE_LIMIT as it adds new scripts, so it got re-assigned with newer ICU releases and USCRIPT_WARANG_CITI was unintentionally classified as ScriptType::WEAK. Change-Id: I5deb5f2050380968ea83b3af969ceae75b1c0070 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153373 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'i18nutil')
-rw-r--r--i18nutil/source/utility/unicode.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx
index b98fa9cb29c4..e2e4199074ff 100644
--- a/i18nutil/source/utility/unicode.cxx
+++ b/i18nutil/source/utility/unicode.cxx
@@ -152,7 +152,7 @@ sal_Int16 unicode::getScriptClassFromUScriptCode(UScriptCode eScript)
case USCRIPT_UNKNOWN:
case USCRIPT_MATHEMATICAL_NOTATION:
case USCRIPT_SYMBOLS:
- case USCRIPT_WARANG_CITI:
+ case USCRIPT_CODE_LIMIT:
nRet = ScriptType::WEAK;
break;
case USCRIPT_ARMENIAN:
@@ -305,6 +305,7 @@ sal_Int16 unicode::getScriptClassFromUScriptCode(UScriptCode eScript)
case USCRIPT_NABATAEAN:
case USCRIPT_PALMYRENE:
case USCRIPT_SINDHI:
+ case USCRIPT_WARANG_CITI:
default: // anything new is going to be pretty wild
nRet = ScriptType::COMPLEX;
break;