discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7c018bba0d7b7c60140af32474ae7bf0979c998c

commit 7c018bba0d7b7c60140af32474ae7bf0979c998c
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Mar 28 16:39:52 2014 -0400

    eolian should use "wb" for file opening to not break windows use
---
 src/bin/eolian/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bin/eolian/main.c b/src/bin/eolian/main.c
index 8e09133..3a989fd 100644
--- a/src/bin/eolian/main.c
+++ b/src/bin/eolian/main.c
@@ -57,7 +57,7 @@ _generate_eo_h_file(char *filename, const char *classname)
 
    const char *htext = eina_strbuf_string_get(hfile);
 
-   FILE* fd = fopen(filename, "w");
+   FILE* fd = fopen(filename, "wb");
    if (!fd)
      {
         const char *err = strerror(errno);
@@ -102,7 +102,7 @@ _generate_c_file(char *filename, const char *classname)
            goto end;
         }
 
-   FILE* fd = fopen(filename, "w");
+   FILE* fd = fopen(filename, "wb");
    if (!fd)
      {
         ERR("Couldnt open file %s for writing", filename);
@@ -137,7 +137,7 @@ _generate_legacy_header_file(char *filename, const char 
*classname)
         goto end;
      }
 
-   FILE* fd = fopen(filename, "w");
+   FILE* fd = fopen(filename, "wb");
    if (!fd)
      {
         ERR ("Couldnt open file %s for writing", filename);

-- 


Reply via email to