mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user