diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2013-01-17 23:07:14 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2013-01-17 23:07:14 +0000 |
commit | 5f7ec0f37d78a8138f2eb93998a064fadb956ae1 (patch) | |
tree | ff9955bee08a7949ed2d34081ab1fb88e7eff4a2 | |
parent | cffbfad57fe38079b3fc34dea59c45a608568bc8 (diff) |
replace POSIX fopen() with Pd's new sys_fopen() to get cross-platform unicode filename support (Pd-extended 0.43.4/Pd-vanilla 0.44)
svn path=/trunk/externals/cxc/; revision=16900
-rw-r--r-- | ascwave.c | 2 | ||||
-rw-r--r-- | proc.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -49,7 +49,7 @@ static void ascwave_open(t_ascwave *x, t_symbol *filename) post("ascwave: open"); x->filename = filename; post("ascwave: filename = %s",x->filename->s_name); - if ((x->x_file = fopen(x->filename->s_name,"w")) < 0) + if ((x->x_file = sys_fopen(x->filename->s_name,"w")) < 0) { error("can't create %s",filename->s_name); return; @@ -57,7 +57,7 @@ void proc_cpuinfo(t_proc *x) restf = 0; ac = 0; - fp = fopen(name,"r"); + fp = sys_fopen(name,"r"); if (!fp) { post("cxc/proc.c: unable to open %s",name); return; @@ -121,7 +121,7 @@ void proc_proc(t_proc *x, t_symbol *s) restf = 0; ac = 0; - fp = fopen(name,"r"); + fp = sys_fopen(name,"r"); if (!fp) { post("cxc/proc.c: unable to open %s",name); return; |