From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id EE80C3858D28; Mon, 20 Feb 2023 22:00:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE80C3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676930453; bh=NzhwDmN+6m794Tb40E0nj0A43bPhr7fSqMNgSi9qM0w=; h=From:To:Subject:Date:From; b=VuhAavy87ZvNz3E9Ecq6+2OJumeylZ0TEmW2QHnS0jIxY47U5K/J30Ob+zMLFHBDf fLnbS0HkKIo2j8wGf04d/Ju+sc5sNCWQSy8gtmLvXVSifySrIz4+rGBOreKYjSr/9V qLb/+yPBpCXQ06v6LNDmDuZmxpuydeBh87B/6Xeo= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: glob: sort in current locale's collating order X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/main X-Git-Oldrev: 81ac069eecd077f54433f8447738c487e10071ea X-Git-Newrev: 1cbe4b3dccf1d2f6bb443bb84dc50197b0e58bc4 Message-Id: <20230220220053.EE80C3858D28@sourceware.org> Date: Mon, 20 Feb 2023 22:00:53 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D1cbe4b3dccf= 1d2f6bb443bb84dc50197b0e58bc4 commit 1cbe4b3dccf1d2f6bb443bb84dc50197b0e58bc4 Author: Corinna Vinschen AuthorDate: Mon Feb 20 22:24:06 2023 +0100 Commit: Corinna Vinschen CommitDate: Mon Feb 20 22:24:06 2023 +0100 Cygwin: glob: sort in current locale's collating order =20 Follow glibc here. =20 Signed-off-by: Corinna Vinschen 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)); } =20 static int