lib/icu/Collate: fall back to strcoll() instead of strcasecmp()
This commit is contained in:
parent
090ce262c4
commit
334bd73792
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user