aboutsummaryrefslogtreecommitdiff
path: root/cyclone/hammer/mtr.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 16:46:29 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 16:46:29 +0000
commiteae942b7b4ed36f5f43edd20ae6abd9e923b96c0 (patch)
tree1b265676adc167d6f30f80ca98e56d37b182b806 /cyclone/hammer/mtr.c
parentc025f3253dd48185ee556e4ef32cce794be11904 (diff)
merge in Win32 UTF-8 file/path support
svn path=/trunk/externals/miXed/; revision=16950
Diffstat (limited to 'cyclone/hammer/mtr.c')
-rw-r--r--cyclone/hammer/mtr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cyclone/hammer/mtr.c b/cyclone/hammer/mtr.c
index 15dc5f6..0d04efa 100644
--- a/cyclone/hammer/mtr.c
+++ b/cyclone/hammer/mtr.c
@@ -488,8 +488,7 @@ static void mtr_doread(t_mtr *x, t_mtrack *target, t_symbol *fname)
path[MAXPDSTRING-1] = 0;
}
/* CHECKED no global message */
- sys_bashfilename(path, path);
- if (fp = fopen(path, "r"))
+ if (fp = sys_fopen(path, "r"))
{
t_mtrack *tp = 0;
char linebuf[MTR_FILEBUFSIZE];
@@ -637,8 +636,7 @@ static void mtr_dowrite(t_mtr *x, t_mtrack *source, t_symbol *fname)
path[MAXPDSTRING-1] = 0;
}
/* CHECKED no global message */
- sys_bashfilename(path, path);
- if (fp = fopen(path, "w"))
+ if (fp = sys_fopen(path, "w"))
{
/* CHECKED single-track writing does not seem to work (a bug?) */
if (source) failed = mtr_writetrack(x, source, fp);