Skip to content

Commit 30feb05

Browse files
committed
FIX: sorting Unicode string not working correctly on Posix
related to: Oldes/Rebol-issues#1100
1 parent a8bfe77 commit 30feb05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/t-string.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ static struct {
351351
DS_SKIP; v2 = DS_TOP;
352352

353353
if (sort_flags.wide) {
354-
SET_CHAR(v1, (int)(*(REBCHR*)p2));
355-
SET_CHAR(v2, (int)(*(REBCHR*)p1));
354+
SET_CHAR(v1, (int)(*(REBUNI*)p2));
355+
SET_CHAR(v2, (int)(*(REBUNI*)p1));
356356
} else {
357357
SET_CHAR(v1, (int)(*(REBYTE*)p2));
358358
SET_CHAR(v2, (int)(*(REBYTE*)p1));

0 commit comments

Comments
 (0)