In wrap tests, read file in text mode to translate line endings

release/4.3a0
Richard Roberts 2012-07-23 19:21:08 +00:00
parent 62f28bb798
commit ec07bf400b
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ using namespace std;
/* ************************************************************************* */
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);
// read file into stringstream