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:
parent
6f98915c32
commit
98b0d8a119
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue