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
This commit is contained in:
Matthias Melcher
2010-11-18 20:00:01 +00:00
parent 983a0d8ce4
commit 1e77c19688
12 changed files with 27 additions and 23 deletions
+3 -3
View File
@@ -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;