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
This commit is contained in:
Bernhard Roider 2007-10-26 21:47:44 +00:00
parent e6dd868635
commit 0886d316d4

View File

@ -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;