i18nutil/source/utility/unicode.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 10214546a8d0cf745a1d01c0ba3c699143f7d85f Author: Khaled Hosny <[email protected]> AuthorDate: Wed Jun 21 09:57:49 2023 +0300 Commit: خالد حسني <[email protected]> CommitDate: Wed Jun 21 11:51:39 2023 +0200 Fix script classification of USCRIPT_WARANG_CITI When the original code was introduced in: commit d83e115bae521fcf193978496d62dbc677a1d6ef Author: Martin Hosken <[email protected]> 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: خالد حسني <[email protected]> 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;
