From 065b7ee1e6dff19eaf2a6be2cc7e8a6d42f9913c Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Mon, 23 Jul 2012 19:29:57 +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 52ed3c750..973778d71 100644 --- a/wrap/utilities.cpp +++ b/wrap/utilities.cpp @@ -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