diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-10 18:24:46 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-10 18:24:46 -0400 |
commit | 963f43a1460a69f569c2634a33ad446a7484ae0f (patch) | |
tree | 9c68c5272fecd2cd7c42aaee5a26b08c660b336f /libs/ptformat | |
parent | c23be46c1531eb69559948cdc23f85e612c8b1a6 (diff) |
libptfformat: use g_fopen() to avoid i18n errors with file paths/names
Diffstat (limited to 'libs/ptformat')
-rw-r--r-- | libs/ptformat/ptfformat.cc | 8 |
1 files 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 <stdio.h> #include <string> #include <string.h> #include <assert.h> +#include <glib/gstdio.h> + +#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; } |