summaryrefslogtreecommitdiff
path: root/src/lib/elua
diff options
context:
space:
mode:
authorVincent Torri <vincent dot torri at gmail dot com>2015-12-03 09:32:39 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-12-05 21:04:36 +0100
commit3b44645363dcdd561edd9610a64f3d2c382753a9 (patch)
tree64f6c4a580e563e79ca3f1867ae510025052fd64 /src/lib/elua
parentd2a7882b732b4cc3a8e7b11ec1c4336bdc2029bb (diff)
efl: add binary mode to f(re)open() calls
This allows better compatibility with Windows Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/elua')
-rw-r--r--src/lib/elua/elua.c2
-rw-r--r--src/lib/elua/io.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elua/elua.c b/src/lib/elua/elua.c
index 602e5d1825..47bcd3fb76 100644
--- a/src/lib/elua/elua.c
+++ b/src/lib/elua/elua.c
@@ -617,7 +617,7 @@ elua_util_script_run(Elua_State *es, int argc, char **argv, int n, int *quit)
617 if (fname) 617 if (fname)
618 { 618 {
619 /* check if there is a file of that name */ 619 /* check if there is a file of that name */
620 FILE *f = fopen(fname, "r"); 620 FILE *f = fopen(fname, "rb");
621 if (f) 621 if (f)
622 { 622 {
623 fclose(f); 623 fclose(f);
diff --git a/src/lib/elua/io.c b/src/lib/elua/io.c
index d5b8a0c7d1..6835e9936f 100644
--- a/src/lib/elua/io.c
+++ b/src/lib/elua/io.c
@@ -10,7 +10,7 @@ get_cmdline_from_argv(const char *fname, const char **argv)
10 char pbuf[PATH_MAX]; 10 char pbuf[PATH_MAX];
11 const char *arg = NULL; 11 const char *arg = NULL;
12 12
13 FILE *testf = fopen(fname, "r"); 13 FILE *testf = fopen(fname, "rb");
14 if (!testf) 14 if (!testf)
15 return NULL; 15 return NULL;
16 16