From 0886d316d4381b224b42785456a4faa3b97f9fad Mon Sep 17 00:00:00 2001 From: Bernhard Roider Date: Fri, 26 Oct 2007 21:47:44 +0000 Subject: [PATCH] complete fix of bug 3172: add binary mode open to the part where istreambuf_iterator is used. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21222 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/lyxsum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support/lyxsum.cpp b/src/support/lyxsum.cpp index 998cf6f93c..8a57f4e479 100644 --- a/src/support/lyxsum.cpp +++ b/src/support/lyxsum.cpp @@ -123,7 +123,7 @@ unsigned long sum(FileName const & file) if (file.isDirectory()) return 0; string filename = file.toFilesystemEncoding(); - ifstream ifs(filename.c_str()); + ifstream ifs(filename.c_str(), std::ios_base::in | std::ios_base::binary); if (!ifs) return 0; -- 2.39.2