]> git.lyx.org Git - features.git/commitdiff
fix bug 3172: open file in binary mode, otherwise iteration of a binary file with...
authorBernhard Roider <bernhard.roider@sonnenkinder.org>
Thu, 25 Oct 2007 22:36:59 +0000 (22:36 +0000)
committerBernhard Roider <bernhard.roider@sonnenkinder.org>
Thu, 25 Oct 2007 22:36:59 +0000 (22:36 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21211 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/lyxsum.cpp

index 23c0109f466acab0413d3490c7ab0c0920c6ac4c..998cf6f93c37773cf18d166decc2f63cc08858c9 100644 (file)
@@ -148,7 +148,7 @@ unsigned long sum(FileName const & file)
                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;