From f406138d922b29875e43466aa89894419e9807b9 Mon Sep 17 00:00:00 2001 From: Maxim Ganetsky Date: Tue, 6 Aug 2024 21:42:29 +0000 Subject: [PATCH] LazUtils: only transform relevant alphabet characters in LazUTF16.UnicodeLowercase function, issue #41056 (cherry picked from commit 6e4a0dd2ae3771aa623cd73ccb2f12218ad1849c) Co-authored-by: Maxim Ganetsky --- components/lazutils/lazutf16.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lazutils/lazutf16.pas b/components/lazutils/lazutf16.pas index 15de81566c..23fca627e0 100644 --- a/components/lazutils/lazutf16.pas +++ b/components/lazutils/lazutf16.pas @@ -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;