aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-17 23:07:14 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-17 23:07:14 +0000
commit5f7ec0f37d78a8138f2eb93998a064fadb956ae1 (patch)
treeff9955bee08a7949ed2d34081ab1fb88e7eff4a2
parentcffbfad57fe38079b3fc34dea59c45a608568bc8 (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.c2
-rw-r--r--proc.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/ascwave.c b/ascwave.c
index 9b2031b..a4009e5 100644
--- a/ascwave.c
+++ b/ascwave.c
@@ -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;
diff --git a/proc.c b/proc.c
index 1bb633c..ed7039b 100644
--- a/proc.c
+++ b/proc.c
@@ -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;