From ec07bf400bd717db12af7be97a94eb6ac75b3d02 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Mon, 23 Jul 2012 19:21:08 +0000 Subject: [PATCH] In wrap tests, read file in text mode to translate line endings --- wrap/utilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrap/utilities.cpp b/wrap/utilities.cpp index 6eb47c55d..9c5d93c76 100644 --- a/wrap/utilities.cpp +++ b/wrap/utilities.cpp @@ -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