libalpm: compare pkgname with strcoll

Use strcoll to compare package names to provide output sorted
according to a users LC_COLLATE settings.

Signed-off-by: Andres P <aepd87@gmail.com>
[Allan: added commit message]
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Andres P 2010-06-19 01:25:15 -04:30 committed by Allan McRae
parent f5f107674b
commit 3e4d2c3aa6
1 changed files with 1 additions and 1 deletions

View File

@ -749,7 +749,7 @@ int _alpm_pkg_cmp(const void *p1, const void *p2)
{
pmpkg_t *pkg1 = (pmpkg_t *)p1;
pmpkg_t *pkg2 = (pmpkg_t *)p2;
return(strcmp(pkg1->name, pkg2->name));
return(strcoll(pkg1->name, pkg2->name));
}
/* Test for existence of a package in a alpm_list_t*