diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Main.cxx | 1 | ||||
-rw-r--r-- | src/lib/icu/Collate.cxx | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/Main.cxx b/src/Main.cxx index 713701e6e..f1a35b709 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -438,6 +438,7 @@ int mpd_main(int argc, char *argv[]) #ifdef HAVE_LOCALE_H /* initialize locale */ setlocale(LC_CTYPE,""); + setlocale(LC_COLLATE, ""); #endif #ifdef HAVE_GLIB diff --git a/src/lib/icu/Collate.cxx b/src/lib/icu/Collate.cxx index 902192c06..7bc631754 100644 --- a/src/lib/icu/Collate.cxx +++ b/src/lib/icu/Collate.cxx @@ -136,7 +136,7 @@ IcuCollate(const char *a, const char *b) #elif defined(HAVE_GLIB) return g_utf8_collate(a, b); #else - return strcasecmp(a, b); + return strcoll(a, b); #endif } |