From a6ef704369348a6cc57c35b847379d42d7e373ba Mon Sep 17 00:00:00 2001 From: Alcaro Date: Mon, 4 Dec 2017 16:47:27 +0100 Subject: [PATCH] Update config_file.c --- libretro-common/file/config_file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretro-common/file/config_file.c b/libretro-common/file/config_file.c index 9e23012168..cf105bbc3a 100644 --- a/libretro-common/file/config_file.c +++ b/libretro-common/file/config_file.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -915,7 +916,7 @@ bool config_file_write(config_file_t *conf, const char *path) if (!string_is_empty(path)) { void* buf = NULL; - FILE *file = fopen(path, "wb"); + FILE *file = fopen_utf8(path, "wb"); if (!file) return false;