1
0
forked from GitHub/gf-core

pgf_read should open the grammar file in binary mode to prevent the Windows runtime from messing up the content.

This commit is contained in:
kr.angelov
2013-11-15 09:04:00 +00:00
parent 254aba33a1
commit 684a3b8df5

View File

@@ -16,7 +16,7 @@ PgfPGF*
pgf_read(const char* fpath, pgf_read(const char* fpath,
GuPool* pool, GuExn* err) GuPool* pool, GuExn* err)
{ {
FILE* infile = fopen(fpath, "r"); FILE* infile = fopen(fpath, "rb");
if (infile == NULL) { if (infile == NULL) {
gu_raise_errno(err); gu_raise_errno(err);
return NULL; return NULL;