public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/main] Cygwin: glob: sort in current locale's collating order
@ 2023-02-20 22:00 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2023-02-20 22:00 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=1cbe4b3dccf1d2f6bb443bb84dc50197b0e58bc4
commit 1cbe4b3dccf1d2f6bb443bb84dc50197b0e58bc4
Author: Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Mon Feb 20 22:24:06 2023 +0100
Commit: Corinna Vinschen <corinna@vinschen.de>
CommitDate: Mon Feb 20 22:24:06 2023 +0100
Cygwin: glob: sort in current locale's collating order
Follow glibc here.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/glob.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/glob.cc b/winsup/cygwin/glob.cc
index eb19e23de1ac..b84c36fccdac 100644
--- a/winsup/cygwin/glob.cc
+++ b/winsup/cygwin/glob.cc
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-20 22:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-20 22:00 [newlib-cygwin/main] Cygwin: glob: sort in current locale's collating order Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).