From: Paul Davis Date: Tue, 10 May 2016 22:24:46 +0000 (-0400) Subject: libptfformat: use g_fopen() to avoid i18n errors with file paths/names X-Git-Tag: 5.0-pre0~675 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=963f43a1460a69f569c2634a33ad446a7484ae0f;p=ardour.git libptfformat: use g_fopen() to avoid i18n errors with file paths/names --- diff --git a/libs/ptformat/ptfformat.cc b/libs/ptformat/ptfformat.cc index 8c3452c868..caf2c2f42a 100644 --- a/libs/ptformat/ptfformat.cc +++ b/libs/ptformat/ptfformat.cc @@ -14,13 +14,15 @@ */ -#include "ptfformat.h" - #include #include #include #include +#include + +#include "ptfformat.h" + using namespace std; static const uint32_t baselut[16] = { @@ -115,7 +117,7 @@ PTFFormat::load(std::string path, int64_t targetsr) { int inv; int err; - if (! (fp = fopen(path.c_str(), "rb"))) { + if (! (fp = g_fopen(path.c_str(), "rb"))) { return -1; }