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 b3149b7897
commit d997df2864

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;