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[])
#ifdef HAVE_LOCALE_H
/* initialize locale */
setlocale(LC_CTYPE,"");
setlocale(LC_COLLATE, "");
#endif
#ifdef HAVE_GLIB
......
......@@ -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
}
......
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