Browse Source

rtl: fixed AnsiSameText using toLowerCase to use default locale

mattias 5 năm trước cách đây
mục cha
commit
041243f477
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/rtl/sysutils.pas

+ 1 - 1
packages/rtl/sysutils.pas

@@ -1411,7 +1411,7 @@ end;
 
 function AnsiSameText(const s1, s2: String): Boolean; assembler;
 asm
-  return s1.localeCompare(s2) == 0;
+  return s1.toLowerCase() == s2.toLowerCase();
 end;
 
 function AnsiCompareStr(const s1, s2: String): Integer;