mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-30 16:50:35 +02:00
rtl: fixed AnsiSameText using toLowerCase to use default locale
This commit is contained in:
parent
9578fd2459
commit
3d92248d55
@ -2018,7 +2018,7 @@ end;
|
|||||||
|
|
||||||
function AnsiSameText(const s1, s2: String): Boolean; assembler;
|
function AnsiSameText(const s1, s2: String): Boolean; assembler;
|
||||||
asm
|
asm
|
||||||
return s1.localeCompare(s2) == 0;
|
return s1.toLowerCase() == s2.toLowerCase();
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function AnsiCompareStr(const s1, s2: String): Integer;
|
function AnsiCompareStr(const s1, s2: String): Integer;
|
||||||
|
Loading…
Reference in New Issue
Block a user