use binary mode to open file - fixes decoding on windows

This commit is contained in:
somesortoferror 2016-04-13 13:08:08 +01:00
parent 87932cb9b4
commit 6165d7cc01

View file

@ -1096,7 +1096,7 @@ int main(int argc, char **argv) {
in_file = stdin;
in_filename = "<stdin>";
} else {
in_file = fopen(in_filename, "r");
in_file = fopen(in_filename, "rb");
if (!in_file) {
fprintf(stderr, "Opening file: %s failed!\n", in_filename);
goto out;