aboutsummaryrefslogtreecommitdiff
path: root/shared/common/os.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 /shared/common/os.c
parentc025f3253dd48185ee556e4ef32cce794be11904 (diff)
merge in Win32 UTF-8 file/path support
svn path=/trunk/externals/miXed/; revision=16950
Diffstat (limited to 'shared/common/os.c')
-rw-r--r--shared/common/os.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/shared/common/os.c b/shared/common/os.c
index 408fdfb..9737949 100644
--- a/shared/common/os.c
+++ b/shared/common/os.c
@@ -216,8 +216,7 @@ FILE *fileread_open(char *filename, t_canvas *cv, int textmode)
if (nameptr != slashpos)
strcpy(slashpos, nameptr);
}
- sys_bashfilename(path, path);
- return (fopen(path, (textmode ? "r" : "rb")));
+ return (sys_fopen(path, (textmode ? "r" : "rb")));
}
FILE *filewrite_open(char *filename, t_canvas *cv, int textmode)
@@ -231,8 +230,7 @@ FILE *filewrite_open(char *filename, t_canvas *cv, int textmode)
strncpy(path, filename, MAXPDSTRING);
path[MAXPDSTRING-1] = 0;
}
- sys_bashfilename(path, path);
- return (fopen(path, (textmode ? "w" : "wb")));
+ return (sys_fopen(path, (textmode ? "w" : "wb")));
}
/* FIXME add MSW */