From cebc143270492fbd817e572281e480f8e5cc86ec Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Wed, 16 Mar 2011 21:50:52 +0100 Subject: alphasort*.c: use strcoll instead of strcmp to support locales Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/misc/dirent/alphasort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/misc/dirent/alphasort.c') diff --git a/libc/misc/dirent/alphasort.c b/libc/misc/dirent/alphasort.c index 55980d115..67b3b7859 100644 --- a/libc/misc/dirent/alphasort.c +++ b/libc/misc/dirent/alphasort.c @@ -10,7 +10,7 @@ int alphasort(const struct dirent **a, const struct dirent **b) { - return strcmp((*a)->d_name, (*b)->d_name); + return strcoll((*a)->d_name, (*b)->d_name); } #if defined __UCLIBC_HAS_LFS__ && __WORDSIZE == 64 strong_alias_untyped(alphasort,alphasort64) -- cgit v1.2.3