]> git.lyx.org Git - features.git/commitdiff
complete fix of bug 3172: add binary mode open to the part where istreambuf_iterator...
authorBernhard Roider <bernhard.roider@sonnenkinder.org>
Fri, 26 Oct 2007 21:47:44 +0000 (21:47 +0000)
committerBernhard Roider <bernhard.roider@sonnenkinder.org>
Fri, 26 Oct 2007 21:47:44 +0000 (21:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21222 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/lyxsum.cpp

index 998cf6f93c37773cf18d166decc2f63cc08858c9..8a57f4e479f6e086d0b1576a582af73dd22b88eb 100644 (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;