Use strcoll instead of strcmp for file names comparation

Should be in 2.2
This commit is contained in:
Andrey A. Chernov 1996-12-28 03:46:27 +00:00
parent c77d878ff5
commit 942c84aabd

View File

@ -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