diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dirvec.c | 2 | ||||
-rw-r--r-- | src/songvec.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/dirvec.c b/src/dirvec.c index 774730382..8fa9cde77 100644 --- a/src/dirvec.c +++ b/src/dirvec.c @@ -19,7 +19,7 @@ static int dirvec_cmp(const void *d1, const void *d2) { const struct directory *a = ((const struct directory * const *)d1)[0]; const struct directory *b = ((const struct directory * const *)d2)[0]; - return strcmp(a->path, b->path); + return g_utf8_collate(a->path, b->path); } void dirvec_init(void) diff --git a/src/songvec.c b/src/songvec.c index 17f60ab3b..929eaea47 100644 --- a/src/songvec.c +++ b/src/songvec.c @@ -14,7 +14,7 @@ static int songvec_cmp(const void *s1, const void *s2) { const struct song *a = ((const struct song * const *)s1)[0]; const struct song *b = ((const struct song * const *)s2)[0]; - return strcmp(a->url, b->url); + return g_utf8_collate(a->url, b->url); } static size_t sv_size(const struct songvec *sv) |