Bug 798885 - Accented character in folder name on Account Export

Changed export_coa to use g_fopen instead of fopen
This commit is contained in:
Robert Fewell 2023-04-28 09:55:57 +01:00
parent 49e34b5e03
commit fb58959f9a

View File

@ -28,6 +28,9 @@
#include <fcntl.h>
#include <sys/stat.h>
#include <regex.h>
#if COMPILER(MSVC)
# define g_fopen fopen
#endif
#include <gnc-engine.h> //for GNC_MOD_BACKEND
#include <gnc-uri-utils.h>
@ -337,7 +340,7 @@ GncXmlBackend::save_may_clobber_data()
void
GncXmlBackend::export_coa(QofBook* book)
{
auto out = fopen(m_fullpath.c_str(), "w");
auto out = g_fopen(m_fullpath.c_str(), "w");
if (out == NULL)
{
set_error(ERR_FILEIO_WRITE_ERROR);