LazUtils: only transform relevant alphabet characters in LazUTF16.UnicodeLowercase function, issue #41056

(cherry picked from commit 6e4a0dd2ae)

Co-authored-by: Maxim Ganetsky <maxim@lazarus-ide.org>
This commit is contained in:
Maxim Ganetsky 2024-08-06 21:42:29 +00:00 committed by Maxim Ganetsky
parent 7330bf87c4
commit f406138d92

View File

@ -1003,7 +1003,7 @@ function UnicodeLowercase(u: cardinal): cardinal;
begin
if u<$00C0 then begin
// most common
if (u>=$0041) and (u<=$0061) then
if (u>=$0041) and (u<=$005A) then
Result:=u+32
else
Result:=u;