From 963f43a1460a69f569c2634a33ad446a7484ae0f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 10 May 2016 18:24:46 -0400 Subject: libptfformat: use g_fopen() to avoid i18n errors with file paths/names --- libs/ptformat/ptfformat.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; } -- cgit v1.2.3