Activate collate to sort local files properly for completion

This commit is contained in:
Andrey A. Chernov 1997-06-27 09:38:07 +00:00
parent 943259e2fc
commit f74df00911
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $Id: complete.c,v 1.1 1997/06/25 08:56:36 msmith Exp $ */
/* $Id: complete.c,v 1.2 1997/06/27 09:30:04 ache Exp $ */
/* $NetBSD: complete.c,v 1.8 1997/05/24 16:34:30 lukem Exp $ */
/*-
@ -39,7 +39,7 @@
#ifndef SMALL
#ifndef lint
static char rcsid[] = "$Id: complete.c,v 1.1 1997/06/25 08:56:36 msmith Exp $";
static char rcsid[] = "$Id: complete.c,v 1.2 1997/06/27 09:30:04 ache Exp $";
#endif /* not lint */
/*
@ -60,7 +60,7 @@ static int
comparstr(a, b)
const void *a, *b;
{
return (strcmp(*(char **)a, *(char **)b));
return (strcoll(*(char **)a, *(char **)b));
}
/*

View File

@ -1,4 +1,4 @@
/* $Id: main.c,v 1.13 1997/06/25 08:56:42 msmith Exp $ */
/* $Id: main.c,v 1.14 1997/06/27 09:30:13 ache Exp $ */
/* $NetBSD: main.c,v 1.22 1997/06/10 07:04:43 lukem Exp $ */
/*
@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 10/9/94";
#else
static char rcsid[] = "$Id: main.c,v 1.13 1997/06/25 08:56:42 msmith Exp $";
static char rcsid[] = "$Id: main.c,v 1.14 1997/06/27 09:30:13 ache Exp $";
#endif
#endif /* not lint */
@ -76,7 +76,7 @@ main(argc, argv)
char *cp, homedir[MAXPATHLEN];
int dumbterm;
(void) setlocale(LC_CTYPE, "");
(void) setlocale(LC_ALL, "");
sp = getservbyname("ftp", "tcp");
if (sp == 0)