diff options
author | Andres P <aepd87@gmail.com> | 2010-06-19 01:25:15 -0430 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2010-06-21 01:04:57 +1000 |
commit | 3e4d2c3aa65416487939148828afb385de2ee146 (patch) | |
tree | 172a7d6b895cd127ee1e060319ef8646556a1ae4 /lib/libalpm/package.c | |
parent | f5f107674bd34b281681d73a32e4dde1f9d0856f (diff) | |
download | pacman-3e4d2c3aa65416487939148828afb385de2ee146.tar.xz |
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>
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r-- | lib/libalpm/package.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index becbc60f..0060300c 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -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* |