Kaydet (Commit) 1b683de3 authored tarafından Jingtao Yan's avatar Jingtao Yan Kaydeden (comit) Eike Rathke

tdf#95494 Calc can not sort Chinese word by stroke and radical,

_length must at the tail of filename.

Change-Id: I434e89bf052d8f3130bfca62d71eaf8588c2bac9
Reviewed-on: https://gerrit.libreoffice.org/21213Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
üst b9f89eea
......@@ -156,20 +156,20 @@ Collator_Unicode::loadCollatorAlgorithm(const OUString& rAlgorithm, const lang::
aBuf.append("get_").append(rLocale.Language).append("_");
if ( rLocale.Language == "zh" ) {
OUString func_base = aBuf.makeStringAndClear();
OUString funclen_base = func_base + "_length";
OUString funclen_base = func_base;
if (OUString("TW HK MO").indexOf(rLocale.Country) >= 0)
{
func = reinterpret_cast<const sal_uInt8* (*)()>(osl_getFunctionSymbol(hModule,
OUString(func_base + "TW_" + rAlgorithm).pData));
funclen = reinterpret_cast<size_t (*)()>(osl_getFunctionSymbol(hModule,
OUString(funclen_base + "TW_" + rAlgorithm).pData));
OUString(funclen_base + "TW_" + rAlgorithm + "_length").pData));
}
if (!func)
{
func = reinterpret_cast<const sal_uInt8* (*)()>(osl_getFunctionSymbol(
hModule, OUString(func_base + rAlgorithm).pData));
funclen = reinterpret_cast<size_t (*)()>(osl_getFunctionSymbol(
hModule, OUString(funclen_base + rAlgorithm).pData));
hModule, OUString(funclen_base + rAlgorithm + "_length").pData));
}
} else {
if ( rLocale.Language == "ja" ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment