diff options
author | Max Kellermann <max@duempel.org> | 2015-06-23 13:26:45 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-06-23 13:26:45 +0200 |
commit | 334bd73792f22a5858bf7afd6df2400f5ac36b26 (patch) | |
tree | 63adcb430fce6e39d65947c565079031b7b60e4a | |
parent | 090ce262c4950236996787c588b0f3ef1dbceb64 (diff) | |
download | mpd-334bd73792f22a5858bf7afd6df2400f5ac36b26.tar.gz mpd-334bd73792f22a5858bf7afd6df2400f5ac36b26.tar.xz mpd-334bd73792f22a5858bf7afd6df2400f5ac36b26.zip |
lib/icu/Collate: fall back to strcoll() instead of strcasecmp()
-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 } |