lib/icu/Canonicalize: use unorm2_normalize() instead of u_strFoldCase()

unorm2_normalize() can case-fold as well, plus it applies Unicode
normalization which MPD should do for proper string comparisons.
This commit is contained in:
Max Kellermann
2022-11-15 17:44:54 +01:00
parent 8b72cb64b2
commit d7f545721b
4 changed files with 48 additions and 6 deletions

View File

@@ -235,7 +235,9 @@ of:
(album == 'BAR'))`
The :command:`find` commands are case sensitive, while
:command:`search` and related commands ignore case.
:command:`search` and related commands ignore case. The latter also
applies `Unicode normalization <https://unicode.org/reports/tr15/>`__
if MPD was compiled with `ICU <https://icu.unicode.org/>`__ support.
Prior to MPD 0.21, the syntax looked like this::