From 4daf22ba0cb1d007e0567c03d2c9698f8566fae2 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 9 Aug 2017 10:07:03 -0700 Subject: [PATCH] Read files in binary mode in tests --- test/helpers/file_helpers.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/helpers/file_helpers.cc b/test/helpers/file_helpers.cc index c4be549a..354a1731 100644 --- a/test/helpers/file_helpers.cc +++ b/test/helpers/file_helpers.cc @@ -25,7 +25,7 @@ int get_modified_time(const string &path) { } string read_file(const string &path) { - ifstream file(path); + ifstream file(path, std::ios::binary); istreambuf_iterator file_iterator(file), end_iterator; string content(file_iterator, end_iterator); file.close();