mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-12 04:15:06 -05:00
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:
parent
f5f107674b
commit
3e4d2c3aa6
@ -749,7 +749,7 @@ int _alpm_pkg_cmp(const void *p1, const void *p2)
|
|||||||
{
|
{
|
||||||
pmpkg_t *pkg1 = (pmpkg_t *)p1;
|
pmpkg_t *pkg1 = (pmpkg_t *)p1;
|
||||||
pmpkg_t *pkg2 = (pmpkg_t *)p2;
|
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*
|
/* Test for existence of a package in a alpm_list_t*
|
||||||
|
Loading…
Reference in New Issue
Block a user