diff options
author | Max Kellermann <max@musicpd.org> | 2017-09-20 23:43:06 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-09-20 23:43:27 +0200 |
commit | 1295a1272a1d787986c99bd133261fe45c763efc (patch) | |
tree | 3f5a9d5299063e9d69f99a9a275097d02908dbb0 /configure.ac | |
parent | 66646d927637b7b370fa81a098d3c35de7a47748 (diff) |
lib/icu/Compare: add fallback using strcasecmp() and strcasestr()
Our IcuCaseFold() fallback using strxfrm() is not actually case
insensitive. This commit fixes the problem by switching to
strcasecmp(). That function is not guaranteed to support UTF-8, but
it's the best we can do in this sparse situation.
Closes #111
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 11d869e2b..ad8b6462a 100644 --- a/configure.ac +++ b/configure.ac @@ -241,6 +241,7 @@ AC_CHECK_FUNCS(getpwnam_r getpwuid_r) AC_CHECK_FUNCS(initgroups) AC_CHECK_FUNCS(fnmatch) AC_CHECK_FUNCS(strndup) +AC_CHECK_FUNCS(strcasestr) if test x$host_is_linux = xyes; then MPD_OPTIONAL_FUNC(eventfd, eventfd, USE_EVENTFD) |