summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingtao Yan <yanjingtao@gmail.com>2016-01-07 10:28:31 -0500
committerEike Rathke <erack@redhat.com>2016-01-11 17:39:13 +0000
commit9059f747c50eaf99a3c065f90b598208edbcb86b (patch)
tree3e7ff8303e509f159766d660b6b347c62f560ec3
parenta31708d9df01e7eae5c9ca39f4ee82fd6644dfe6 (diff)
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/21213 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 1b683de366f4caf82225c632f02cf0f58ae76490) Reviewed-on: https://gerrit.libreoffice.org/21368
-rw-r--r--i18npool/source/collator/collator_unicode.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/i18npool/source/collator/collator_unicode.cxx b/i18npool/source/collator/collator_unicode.cxx
index 3eb93f364e2c..9ef6548528cd 100644
--- a/i18npool/source/collator/collator_unicode.cxx
+++ b/i18npool/source/collator/collator_unicode.cxx
@@ -156,20 +156,20 @@ Collator_Unicode::loadCollatorAlgorithm(const OUString& rAlgorithm, const lang::
aBuf.appendAscii("get_").append(rLocale.Language).appendAscii("_");
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" ) {