diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-16 21:50:52 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:26 +0200 |
commit | cebc143270492fbd817e572281e480f8e5cc86ec (patch) | |
tree | ebf67f83220c7d1556683a56f73f6103da246324 /libc/misc/dirent/alphasort.c | |
parent | 83625362e00c955f7edea2ab7f97278b58de4c22 (diff) |
alphasort*.c: use strcoll instead of strcmp to support locales
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/misc/dirent/alphasort.c')
-rw-r--r-- | libc/misc/dirent/alphasort.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |