- fixed: mode argument was ignored by utf8_fopen() on POSIX platforms

This commit is contained in:
alexey.lysiuk 2019-10-05 11:02:19 +03:00
parent f13843c8ca
commit 7780f774f9
1 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ inline std::wstring wideString(const char *filename)
inline FILE* utf8_fopen(const char* filename, const char *mode)
{
#ifndef _WIN32
return fopen(filename, "wb");
return fopen(filename, mode);
#else
auto fn = wideString(filename);
auto mo = wideString(mode);