Skip to content

Commit 3cd6f31

Browse files
committed
Fix CRLF issue for override files
See ticket 3602
1 parent 14d8735 commit 3cd6f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SimulationRuntime/c/simulation/simulation_input_xml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ void doOverride(omc_ModelInput *mi, MODEL_DATA *modelData, const char *override,
907907
/* read override values from file */
908908
infoStreamPrint(LOG_SOLVER, 0, "read override values from file: %s", overrideFile);
909909

910-
infile = fopen(overrideFile, "r");
910+
infile = fopen(overrideFile, "rb");
911911
if (0==infile) {
912912
throwStreamPrint(NULL, "simulation_input_xml.c: could not open the file given to -overrideFile=%s", overrideFile);
913913
}

0 commit comments

Comments
 (0)