[Libreoffice-commits] core.git: basic/source

Andreas Heinisch (via logerrit) logerrit at kemper.freedesktop.org
Thu May 13 18:03:49 UTC 2021


 basic/source/runtime/methods.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 698e27d29cf0612634720c818ee773bfac6c40d1
Author:     Andreas Heinisch <andreas.heinisch at yahoo.de>
AuthorDate: Thu May 13 10:03:33 2021 +0200
Commit:     Andreas Heinisch <andreas.heinisch at yahoo.de>
CommitDate: Thu May 13 20:03:07 2021 +0200

    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 at yahoo.de>

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);
     }


More information about the Libreoffice-commits mailing list