Fix support for utf8 character in path on unix systems

#2187
This commit is contained in:
Wojtek Figat
2024-03-04 16:45:44 +01:00
parent 04761c69f1
commit 5fdf1789ce
3 changed files with 25 additions and 23 deletions

View File

@@ -73,7 +73,7 @@ UnixFile* UnixFile::Open(const StringView& path, FileMode mode, FileAccess acces
if ((uint32)share & (uint32)FileShare::Delete)
omode |= 0;
const StringAsANSI<> pathANSI(*path, path.Length());
const StringAsUTF8<> pathANSI(*path, path.Length());
auto handle = open(pathANSI.Get(), flags, omode);
if (handle == -1)
{