ref: ddeb8932c53d1d2f4d44cfc2697e9afac27d00d6
parent: c28f07b5840216c4e83e1d3b21d8a9ed7c41f8f9
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
--
⑨