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/code.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fluid/code.cxx') diff --git a/fluid/code.cxx b/fluid/code.cxx index 2e55d9f7a..c235e25d1 100644 --- a/fluid/code.cxx +++ b/fluid/code.cxx @@ -354,13 +354,13 @@ int write_code(const char *s, const char *t) { current_widget_class = 0L; if (!s) code_file = stdout; else { - FILE *f = fopen(s, filemode); + FILE *f = fl_fopen(s, filemode); if (!f) return 0; code_file = f; } if (!t) header_file = stdout; else { - FILE *f = fopen(t, filemode); + FILE *f = fl_fopen(t, filemode); if (!f) {fclose(code_file); return 0;} header_file = f; } @@ -468,7 +468,7 @@ int write_code(const char *s, const char *t) { } int write_strings(const char *sfile) { - FILE *fp = fopen(sfile, "w"); + FILE *fp = fl_fopen(sfile, "w"); Fl_Type *p; Fl_Widget_Type *w; int i; -- cgit v1.2.3