diff --git a/Source/Core/Common/FileSearch.cpp b/Source/Core/Common/FileSearch.cpp index bce8e77b8e..2994e00a74 100644 --- a/Source/Core/Common/FileSearch.cpp +++ b/Source/Core/Common/FileSearch.cpp @@ -74,7 +74,7 @@ std::vector DoFileSearch(const std::vector& directorie std::vector native_exts; for (const auto& ext : exts) - native_exts.push_back(ext); + native_exts.push_back(fs::u8path(ext)); // N.B. This avoids doing any copies auto ext_matches = [&native_exts](const fs::path& path) {