mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -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,
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user