summaryrefslogtreecommitdiff
path: root/fluid/code.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-11-18 20:00:01 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-11-18 20:00:01 +0000
commit1e77c19688a76f96813d76b68323a6030aed8230 (patch)
treed0c9c7b2099059a5846ce49a61dec3fcb524e764 /fluid/code.cxx
parent983a0d8ce4f835c5714052171307ca29c402b015 (diff)
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
Diffstat (limited to 'fluid/code.cxx')
-rw-r--r--fluid/code.cxx6
1 files changed, 3 insertions, 3 deletions
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;