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:
@@ -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