handle unicode file open

This commit is contained in:
robert-yates
2024-12-24 01:01:08 +01:00
parent 6b51b143bc
commit 8ed299b683
2 changed files with 39 additions and 4 deletions

View File

@@ -2158,9 +2158,8 @@ namespace
}
FILE* file{};
// TODO: fix unicode conversion
//const auto error = _wfopen_s(&file, f.name.c_str(), mode);
const auto error = EACCES;
const auto error = open_unicode(&file, f.name.c_str(), mode.c_str());
if (!file)
{