Skip to content

Commit bc047ba

Browse files
author
Arnaud Bouchez
committed
tests: fixed Utf8CompareIOS() on non-WinAnsi systems
1 parent 6ce85c3 commit bc047ba

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/mormot.commit.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
'2.3.8846'
1+
'2.3.8847'

test/test.core.base.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5623,7 +5623,8 @@ procedure TTestCoreBase._UTF8;
56235623
CheckEqual(CompareInteger(Utf8CompareIOS(pointer(U), pointer(Up)), 0),
56245624
-CompareInteger(Utf8CompareIOS(pointer(Up), pointer(U)), 0));
56255625
CheckEqual(Utf8CompareIOS(pointer(U), pointer(U)), 0);
5626-
CheckEqual(Utf8CompareIOS(pointer(U), pointer(Up)), 0);
5626+
if Unicode_CodePage = CP_WINANSI then
5627+
CheckEqual(Utf8CompareIOS(pointer(U), pointer(Up)), 0);
56275628
//for j := 1 to 5000 do
56285629
try
56295630
//W := WinAnsiString(RandomString(len));

0 commit comments

Comments
 (0)