> Sub TestReplace2 > MsgBox Replace("АБВабв", "б", "*") ' test Cyrillic characters > MsgBox Replace("ABCabc", "b", "*") ' test ASCII characters > End Sub This code generates "АБВа*в" in the first case, while the correct result should be "А*Ва*в", since the default mode for Replace is case-insensitive [1]. It shows "A*Ca*c" correctly for the second case. Replace should allow case-insensitive operation for non-ASCII characters, too. Code pointer: SbRtl_Replace in basic/source/runtime/methods.cxx. [1] https://help.libreoffice.org/6.4/en-US/text/sbasic/shared/replace.html
Andreas Heinisch committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/3ff159d35770ac3454ee909b348cb4f4ca8b0b9b tdf#132389 - case-insensitive operation for non-ASCII characters It will be available in 7.0.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.