aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-06-23 13:26:45 +0200
committerMax Kellermann <max@duempel.org>2015-06-23 13:26:45 +0200
commit334bd73792f22a5858bf7afd6df2400f5ac36b26 (patch)
tree63adcb430fce6e39d65947c565079031b7b60e4a /src
parent090ce262c4950236996787c588b0f3ef1dbceb64 (diff)
downloadmpd-334bd73792f22a5858bf7afd6df2400f5ac36b26.tar.gz
mpd-334bd73792f22a5858bf7afd6df2400f5ac36b26.tar.xz
mpd-334bd73792f22a5858bf7afd6df2400f5ac36b26.zip
lib/icu/Collate: fall back to strcoll() instead of strcasecmp()
Diffstat (limited to 'src')
-rw-r--r--src/Main.cxx1
-rw-r--r--src/lib/icu/Collate.cxx2
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
}