Fix DoFileSearch for non-ASCII extensions on Windows

We don't use non-ASCII extensions for anything right now,
but we might as well fix this.
This commit is contained in:
JosJuice 2017-06-28 09:50:02 +02:00
parent 6f98915c32
commit 98b0d8a119
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ std::vector<std::string> DoFileSearch(const std::vector<std::string>& directorie
std::vector<fs::path> 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) {