diff --git a/libraries/music_common/fileio.h b/libraries/music_common/fileio.h index dab3b3b27..93206ca67 100644 --- a/libraries/music_common/fileio.h +++ b/libraries/music_common/fileio.h @@ -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); @@ -376,4 +376,4 @@ public: -} \ No newline at end of file +}