> 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 . 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.
Andreas Heinisch committed a patch related to this issue.
It has been pushed to "master":
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:
Affected users are encouraged to test the fix and report feedback.