Commit 334bd737 authored by Max Kellermann's avatar Max Kellermann

lib/icu/Collate: fall back to strcoll() instead of strcasecmp()

parent 090ce262
...@@ -438,6 +438,7 @@ int mpd_main(int argc, char *argv[]) ...@@ -438,6 +438,7 @@ int mpd_main(int argc, char *argv[])
#ifdef HAVE_LOCALE_H #ifdef HAVE_LOCALE_H
/* initialize locale */ /* initialize locale */
setlocale(LC_CTYPE,""); setlocale(LC_CTYPE,"");
setlocale(LC_COLLATE, "");
#endif #endif
#ifdef HAVE_GLIB #ifdef HAVE_GLIB
......
...@@ -136,7 +136,7 @@ IcuCollate(const char *a, const char *b) ...@@ -136,7 +136,7 @@ IcuCollate(const char *a, const char *b)
#elif defined(HAVE_GLIB) #elif defined(HAVE_GLIB)
return g_utf8_collate(a, b); return g_utf8_collate(a, b);
#else #else
return strcasecmp(a, b); return strcoll(a, b);
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment