From 942c84aabdee6f7c684d7675b79c0ad434e5980b Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sat, 28 Dec 1996 03:46:27 +0000 Subject: [PATCH] Use strcoll instead of strcmp for file names comparation Should be in 2.2 --- bin/ls/cmp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ls/cmp.c b/bin/ls/cmp.c index db72a1d29ba..ec30ff5749d 100644 --- a/bin/ls/cmp.c +++ b/bin/ls/cmp.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cmp.c,v 1.2 1994/09/24 02:55:52 davidg Exp $ + * $Id: cmp.c,v 1.3 1996/12/14 06:03:27 steve Exp $ */ #ifndef lint @@ -53,14 +53,14 @@ int namecmp(a, b) const FTSENT *a, *b; { - return (strcmp(a->fts_name, b->fts_name)); + return (strcoll(a->fts_name, b->fts_name)); } int revnamecmp(a, b) const FTSENT *a, *b; { - return (strcmp(b->fts_name, a->fts_name)); + return (strcoll(b->fts_name, a->fts_name)); } int -- 2.45.2