mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 15:32:12 +08:00
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:
+3
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user