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 --- test/demo.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/demo.cxx') diff --git a/test/demo.cxx b/test/demo.cxx index e4e2383a6..a71bb7a94 100644 --- a/test/demo.cxx +++ b/test/demo.cxx @@ -434,7 +434,7 @@ int load_the_menu(const char* fname) FILE *fin = 0; char line[256], mname[64],iname[64],cname[64]; int i,j, mi = 0; - fin = fopen(fname,"r"); + fin = fl_fopen(fname,"r"); if (fin == NULL) { #if defined ( __APPLE__ ) @@ -445,7 +445,7 @@ int load_the_menu(const char* fname) pos = strrchr(fname,'/'); if (!pos) return 0; strcpy(pos,"/Resources/demo.menu"); - fin = fopen(fname,"r"); + fin = fl_fopen(fname,"r"); #endif } // if "fin" is still NULL, we will read the menu from the string array in the -- cgit v1.2.3