From 306ea4b996e8b481c242b9ca667f7d145e9ef500 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Tue, 21 Aug 2018 20:00:58 +0100 Subject: [PATCH] Fix filename encoding mismatch in test code --- src/tests/common_game_test_fixture.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/common_game_test_fixture.h b/src/tests/common_game_test_fixture.h index 91b0ef33..97212228 100644 --- a/src/tests/common_game_test_fixture.h +++ b/src/tests/common_game_test_fixture.h @@ -176,11 +176,11 @@ protected: it != std::filesystem::directory_iterator(); ++it) { if (std::filesystem::is_regular_file(it->status())) { - std::string filename = it->path().filename().string(); + std::string filename = it->path().filename().u8string(); if (filename == nonPluginFile) continue; if (boost::ends_with(filename, ".ghost")) - filename = it->path().stem().string(); + filename = it->path().stem().u8string(); if (boost::ends_with(filename, ".esp") || boost::ends_with(filename, ".esm")) loadOrder.emplace(std::filesystem::last_write_time(it->path()),