<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - BASIC: Replace is only case-insensitive for ASCII characters"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=132389">132389</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>BASIC: Replace is only case-insensitive for ASCII characters
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>BASIC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mikekaganski@hotmail.com
</td>
</tr></table>
<p>
<div>
<pre><span class="quote">> Sub TestReplace2
> MsgBox Replace("АБВабв", "б", "*") ' test Cyrillic characters
> MsgBox Replace("ABCabc", "b", "*") ' test ASCII characters
> End Sub</span >
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] <a href="https://help.libreoffice.org/6.4/en-US/text/sbasic/shared/replace.html">https://help.libreoffice.org/6.4/en-US/text/sbasic/shared/replace.html</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>