summaryrefslogtreecommitdiff
path: root/Source/Core/Common/FileSearch.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2017-06-28 09:50:02 +0200
committerJosJuice <josjuice@gmail.com>2017-06-28 09:50:02 +0200
commit98b0d8a1197c6402b030258685b2eb6e1cd74e39 (patch)
treef6d1dc783bb842016d568e8f0333cab3b460ab9a /Source/Core/Common/FileSearch.cpp
parent6f98915c32d1bb8e59dcd8963231affab6854be5 (diff)
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.
Diffstat (limited to 'Source/Core/Common/FileSearch.cpp')
-rw-r--r--Source/Core/Common/FileSearch.cpp2
1 files changed, 1 insertions, 1 deletions
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<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) {