From 334bd73792f22a5858bf7afd6df2400f5ac36b26 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 23 Jun 2015 13:26:45 +0200 Subject: lib/icu/Collate: fall back to strcoll() instead of strcasecmp() --- src/Main.cxx | 1 + src/lib/icu/Collate.cxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 } -- cgit v1.2.3