In wrap tests, read file in text mode to translate line endings
parent
c32d1c7e02
commit
065b7ee1e6
|
@ -30,7 +30,7 @@ using namespace std;
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
string file_contents(const string& filename, bool skipheader) {
|
string file_contents(const string& filename, bool skipheader) {
|
||||||
ifstream ifs(filename.c_str(), ios::binary); // Do not do LF/CRLF translation - we always write in binary mode too
|
ifstream ifs(filename.c_str());
|
||||||
if(!ifs) throw CantOpenFile(filename);
|
if(!ifs) throw CantOpenFile(filename);
|
||||||
|
|
||||||
// read file into stringstream
|
// read file into stringstream
|
||||||
|
|
Loading…
Reference in New Issue