From b79cfa213d7e706e2a080715d61e824d55b129df Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 16 Feb 2022 10:53:48 +0100 Subject: [PATCH] fix: Opening recent files with unicode characters in their path --- plugins/builtin/source/content/welcome_screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/welcome_screen.cpp b/plugins/builtin/source/content/welcome_screen.cpp index 535a573c4..0009d0530 100644 --- a/plugins/builtin/source/content/welcome_screen.cpp +++ b/plugins/builtin/source/content/welcome_screen.cpp @@ -458,7 +458,7 @@ namespace hex::plugin::builtin { } for (const auto &path : ContentRegistry::Settings::read("hex.builtin.setting.imhex", "hex.builtin.setting.imhex.recent_files")) - s_recentFilePaths.emplace_back(path); + s_recentFilePaths.emplace_back(std::u8string(path.begin(), path.end())); if (ImHexApi::System::getInitArguments().contains("tip-of-the-day")) { s_tipOfTheDay = ImHexApi::System::getInitArguments()["tip-of-the-day"];