Commit 3d411bb1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix CRLF on Win32 with utf8_fopen (thanks to Md) closes #837

parent 0a637ed7
...@@ -349,6 +349,12 @@ FILE *utf8_fopen (const char *filename, const char *mode) ...@@ -349,6 +349,12 @@ FILE *utf8_fopen (const char *filename, const char *mode)
case '+': case '+':
rwflags = O_RDWR; rwflags = O_RDWR;
break; break;
#ifdef O_TEXT
case 't':
oflags |= O_TEXT;
break;
#endif
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment