mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 08:19:56 +02:00
Instead of UTF8CompareText use AnsiCompareText which uses mostly system libraries.
git-svn-id: trunk@64437 -
This commit is contained in:
parent
dfa3fe0ea4
commit
c32adb1c7f
@ -259,7 +259,8 @@ begin
|
||||
CFRelease(F1);
|
||||
CFRelease(F2);
|
||||
{$ELSE}
|
||||
Result:=UTF8CompareText(Filename1, Filename2);
|
||||
// AnsiCompareText uses UTF8CompareText on Windows, elsewhere system string manager.
|
||||
Result:=AnsiCompareText(Filename1, Filename2);
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
|
@ -611,7 +611,7 @@ begin
|
||||
while (L <= R) do
|
||||
begin
|
||||
I := L + (R - L) div 2;
|
||||
CompareRes := UTF8CompareText(S, Strings[I]);
|
||||
CompareRes := AnsiCompareText(S, Strings[I]);
|
||||
if (CompareRes > 0) then
|
||||
L := I + 1
|
||||
else
|
||||
|
@ -615,7 +615,7 @@ begin
|
||||
while (L <= R) do
|
||||
begin
|
||||
I := L + (R - L) div 2;
|
||||
CompareRes := UTF8CompareText(S, Strings[I]);
|
||||
CompareRes := AnsiCompareText(S, Strings[I]);
|
||||
if (CompareRes > 0) then
|
||||
L := I + 1
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user