mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
libptfformat: use g_fopen() to avoid i18n errors with file paths/names
This commit is contained in:
parent
c23be46c15
commit
963f43a146
1 changed files with 5 additions and 3 deletions
|
|
@ -14,13 +14,15 @@
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ptfformat.h"
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
#include <glib/gstdio.h>
|
||||||
|
|
||||||
|
#include "ptfformat.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
static const uint32_t baselut[16] = {
|
static const uint32_t baselut[16] = {
|
||||||
|
|
@ -115,7 +117,7 @@ PTFFormat::load(std::string path, int64_t targetsr) {
|
||||||
int inv;
|
int inv;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
if (! (fp = fopen(path.c_str(), "rb"))) {
|
if (! (fp = g_fopen(path.c_str(), "rb"))) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue