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

release/4.3a0
Richard Roberts 2012-07-23 19:29:57 +00:00
parent c32d1c7e02
commit 065b7ee1e6
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,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