diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2021-05-13 10:03:33 +0200 |
---|---|---|
committer | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2021-05-13 20:03:07 +0200 |
commit | 698e27d29cf0612634720c818ee773bfac6c40d1 (patch) | |
tree | 8a6feae9f42b352d138f978d2131ac861b81ed44 /basic/source/runtime/methods.cxx | |
parent | c9de441f84ad4641662f2ce510868f3e3164a22f (diff) |
tdf#132389 - Case-insensitive operation for non-ASCII characters
The replace function should depend on the application locale, instead of the UI language.
Change-Id: I1582db07a1560da9ea87c0b127cf92611c8544bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115540
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'basic/source/runtime/methods.cxx')
-rw-r--r-- | basic/source/runtime/methods.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 73bfe7fbc2d0..fce05bf3e4d1 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -1292,8 +1292,9 @@ void SbRtl_Replace(StarBASIC *, SbxArray & rPar, bool) if (bCaseInsensitive) { // tdf#132389 - case-insensitive operation for non-ASCII characters - const css::lang::Locale& rLocale = Application::GetSettings().GetUILanguageTag().getLocale(); - css::uno::Reference < i18n::XCharacterClassification > xCharClass = vcl::unohelper::CreateCharacterClassification(); + const css::lang::Locale& rLocale = Application::GetSettings().GetLanguageTag().getLocale(); + css::uno::Reference<i18n::XCharacterClassification> xCharClass + = vcl::unohelper::CreateCharacterClassification(); aSrcStr = xCharClass->toUpper(aSrcStr, 0, aSrcStr.getLength(), rLocale); aFindStr = xCharClass->toUpper(aFindStr, 0, aFindStr.getLength(), rLocale); } |