https://bugs.documentfoundation.org/show_bug.cgi?id=95494
Bug ID: 95494
Summary: Calc can not sort Chinese word by stroke and radical
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Calc
Assignee: [email protected]
Reporter: [email protected]
patch is here. tested in 5.0.3.1 and OK.
source file: /libreoffice-5.0.3.1/i18npool/source/collator/collator_unicode.cxx
=======
--- /libreoffice-5.0.3.1/i18npool/source/collator/collator_unicode.cxx.old
+++ /libreoffice-5.0.3.1/i18npool/source/collator/collator_unicode.cxx
@@ -156,20 +156,20 @@
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;// + "_length";
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" ) {
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs