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;