ref: 5642f902eb2e364a9b63e65348c0f1bb24325efd
parent: 4ae8c598af6e60a9705ddfa373dfad090451968e
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Jan 30 00:06:13 EST 2025
git/save: sort unicode file paths correctly when comparing the files in entcmp, we need to do an unsigned comparison to sort the codepoints correctly, not a signed one.
--- a/sys/src/cmd/git/util.c
+++ b/sys/src/cmd/git/util.c
@@ -37,13 +37,13 @@
entcmp(void *pa, void *pb)
{
Dirent *ae, *be;
- char *a, *b;
+ uchar *a, *b;
int ca, cb;
ae = pa;
be = pb;
- a = ae->name;
- b = be->name;
+ a = (uchar*)ae->name;
+ b = (uchar*)be->name;
/*
* If the files have the same name, they're equal.
* Otherwise, If they're trees, they sort as thoug
--
⑨