From d997df2864a29986d7146aa4dc69d9be879718cc Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Fri, 15 Nov 2013 09:04:00 +0000 Subject: [PATCH] pgf_read should open the grammar file in binary mode to prevent the Windows runtime from messing up the content. --- src/runtime/c/pgf/pgf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/c/pgf/pgf.c b/src/runtime/c/pgf/pgf.c index 93dea300a..b9f555978 100644 --- a/src/runtime/c/pgf/pgf.c +++ b/src/runtime/c/pgf/pgf.c @@ -16,7 +16,7 @@ PgfPGF* pgf_read(const char* fpath, GuPool* pool, GuExn* err) { - FILE* infile = fopen(fpath, "r"); + FILE* infile = fopen(fpath, "rb"); if (infile == NULL) { gu_raise_errno(err); return NULL;