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

This commit is contained in:
Max Kellermann 2015-06-23 13:26:45 +02:00
parent 090ce262c4
commit 334bd73792
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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
}