4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-03-03 21:45:51 +08:00

Cygwin: glob: sort in current locale's collating order

Follow glibc here.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2023-02-20 22:24:06 +01:00
parent 81ac069eec
commit 1cbe4b3dcc

View File

@ -615,7 +615,7 @@ glob0(const Char *pattern, glob_t *pglob, size_t *limit)
static int
compare(const void *p, const void *q)
{
return(strcmp(*(char **)p, *(char **)q));
return(strcoll(*(char **)p, *(char **)q));
}
static int