mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-03 10:51:47 -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 *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*
|
||||
|
Loading…
x
Reference in New Issue
Block a user