]> git.lyx.org Git - lyx.git/commitdiff
Use ios__binary mode to copy files.
authorAngus Leeming <leeming@lyx.org>
Tue, 14 Dec 2004 14:17:13 +0000 (14:17 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 14 Dec 2004 14:17:13 +0000 (14:17 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9369 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/ChangeLog
src/support/copy.C

index 7cd6ae0a4638b63c62cceafedd72177206455d0a..0ae02233d48b77c1d0c09565fbb824bec953452a 100644 (file)
@@ -1,3 +1,7 @@
+2004-12-14  Angus Leeming  <leeming@lyx.org>
+
+       * copy.C (copy): open the ifstream with ios::binary.
+
 2004-12-14  Angus Leeming  <leeming@lyx.org>
 
        * os.C: Add _WIN32 to the #define.
index 6ad896f1566d8e53a978155d6ba3124ad91091f8..b39c771b63003e0b6d834a5083b5d851ac9a02b9 100644 (file)
@@ -23,7 +23,7 @@ using std::string;
 
 bool lyx::support::copy(string const & from, string const & to)
 {
-       ifstream ifs(from.c_str());
+       ifstream ifs(from.c_str(), ios::binary);
        if (!ifs)
                return false;
        ofstream ofs(to.c_str(),