Skip to content

Commit 62de72c

Browse files
refactor: trying to fix UTF8 sorting--still no matching hash
1 parent 509c2f5 commit 62de72c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

entries/dcornelius/src/uChallengeWithDictionary.pas

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ procedure ChallengeWithDictionary;
6969

7070
function TUTF8CustomComparer.Compare(const Left, Right: string): Integer;
7171
begin
72-
// Convert UTF-8 strings to UnicodeString for comparison
73-
Result := CompareStr(UTF8ToWideString(Left), UTF8ToWideString(Right));
72+
Result := CompareStr(Left, Right);
7473
end;
7574

7675
end.

0 commit comments

Comments
 (0)