Read files in binary mode in tests

This commit is contained in:
Max Brunsfeld 2017-08-09 10:07:03 -07:00
parent 9d649f3382
commit 4daf22ba0c

View file

@ -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<char> file_iterator(file), end_iterator;
string content(file_iterator, end_iterator);
file.close();