fix: Windows system error messages not being encoded correctly

This commit is contained in:
WerWolv
2025-01-28 19:33:31 +01:00
parent 19a9786bbf
commit d45dd45720
4 changed files with 7 additions and 7 deletions

View File

@@ -197,7 +197,7 @@ namespace hex::plugin::builtin {
bool IntelHexProvider::open() {
auto file = wolv::io::File(m_sourceFilePath, wolv::io::File::Mode::Read);
if (!file.isValid()) {
this->setErrorMessage(hex::format("hex.builtin.provider.file.error.open"_lang, m_sourceFilePath.string(), std::system_category().message(errno)));
this->setErrorMessage(hex::format("hex.builtin.provider.file.error.open"_lang, m_sourceFilePath.string(), formatSystemError(errno)));
return false;
}