From b78b4387f2afe80ffc1e239cc75ca1774a51043d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 4 Jan 2018 14:06:48 -0500 Subject: Open files in binary mode to preserve line endings on Windows --- tests/serd_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/serd_test.c') diff --git a/tests/serd_test.c b/tests/serd_test.c index 33f78fcd..b80c8b82 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -484,7 +484,7 @@ main(void) // Test SerdReader and SerdWriter const char* path = "serd_test.ttl"; - FILE* fd = fopen(path, "w"); + FILE* fd = fopen(path, "wb"); if (!fd) { FAILF("Failed to open file %s\n", path); } -- cgit v1.2.1