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/Fluid_Image.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fluid/Fluid_Image.cxx') diff --git a/fluid/Fluid_Image.cxx b/fluid/Fluid_Image.cxx index 244dc812e..4fa3bf308 100644 --- a/fluid/Fluid_Image.cxx +++ b/fluid/Fluid_Image.cxx @@ -111,7 +111,7 @@ void Fluid_Image::write_static() { write_c("static unsigned char %s[] =\n", unique_id(this, "idata", fl_filename_name(name()), 0)); - FILE *f = fopen(name(), "rb"); + FILE *f = fl_fopen(name(), "rb"); if (!f) { // message = "Can't include binary file. Can't open"; } else { @@ -180,7 +180,7 @@ Fluid_Image* Fluid_Image::find(const char *iname) { // no, so now see if the file exists: goto_source_dir(); - FILE *f = fopen(iname,"rb"); + FILE *f = fl_fopen(iname,"rb"); if (!f) { read_error("%s : %s",iname,strerror(errno)); leave_source_dir(); -- cgit v1.2.3