Windows: use binary I/O everywhere
...because newlines matter, at least in the test suite, and because
having a stable file format really helps. No LF/CRLF changes for me,
please.
diff --git a/tools/re/main.c b/tools/re/main.c
index 9ef32eb..2292b2a 100644
--- a/tools/re/main.c
+++ b/tools/re/main.c
@@ -146,7 +146,7 @@
fprintf(stderr, "yangre error: command line patterns cannot be mixed with file input.\n");
goto cleanup;
}
- infile = fopen(optarg, "r");
+ infile = fopen(optarg, "rb");
if (!infile) {
fprintf(stderr, "yangre error: unable to open input file %s (%s).\n", optarg, strerror(errno));
goto cleanup;