From 7780f774f9b9ad223fb12f7384b995af3b4edd60 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 5 Oct 2019 11:02:19 +0300 Subject: [PATCH] - fixed: mode argument was ignored by utf8_fopen() on POSIX platforms --- libraries/music_common/fileio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}