mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
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:
parent
e6dd868635
commit
0886d316d4
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user