From 1e77c19688a76f96813d76b68323a6030aed8230 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 18 Nov 2010 20:00:01 +0000 Subject: Fixed file access code to use UTF-8 strings (STR #2440) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7874 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/file.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fluid/file.cxx') diff --git a/fluid/file.cxx b/fluid/file.cxx index d5168a7ee..beee3f4da 100644 --- a/fluid/file.cxx +++ b/fluid/file.cxx @@ -43,7 +43,7 @@ static FILE *fout; int open_write(const char *s) { if (!s) {fout = stdout; return 1;} - FILE *f = fopen(s,"w"); + FILE *f = fl_fopen(s,"w"); if (!f) return 0; fout = f; return 1; @@ -135,7 +135,7 @@ static const char *fname; int open_read(const char *s) { lineno = 1; if (!s) {fin = stdin; fname = "stdin"; return 1;} - FILE *f = fopen(s,"r"); + FILE *f = fl_fopen(s,"r"); if (!f) return 0; fin = f; fname = s; -- cgit v1.2.3