diff --git a/src/lib/icu/CaseFold.cxx b/src/lib/icu/CaseFold.cxx index a4b74761c..2d9f6a24e 100644 --- a/src/lib/icu/CaseFold.cxx +++ b/src/lib/icu/CaseFold.cxx @@ -27,6 +27,7 @@ #ifdef HAVE_ICU #include "Util.hxx" #include "util/AllocatedArray.hxx" +#include "util/SpanCast.hxx" #include #include @@ -57,7 +58,7 @@ try { return {src}; folded.SetSize(folded_length); - return UCharToUTF8(std::basic_string_view{folded.data(), folded.size()}); + return UCharToUTF8(ToStringView(std::span{folded})); #else #error not implemented