Read files in binary mode in tests
This commit is contained in:
parent
9d649f3382
commit
4daf22ba0c
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue