Skip to content

Non English letters in File paths will fail on Windows #18

Open
@gabrielaexile

Description

@gabrielaexile

Non English letters will fail in File paths for Windows _open cannot carry UTF8 on Windows.

Only solution I know is to use:

#ifdef _WIN32
if ((fd = _wopen((const wchar_t*)filename, O_RDONLY | O_BINARY)) < 0)
#else
if ((fd = open(filename, O_RDONLY | O_BINARY)) < 0)
#endif

Or alternative if you want to keep your API using UTF8 then take it in as UTF8 and convert to UTF16 before calling _wopen.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingplatform-issueIssue is specific to an OS or desktoppriority-low

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions