]> git.lyx.org Git - lyx.git/blobdiff - src/support/copy.C
Use ios__binary mode to copy files.
[lyx.git] / src / support / copy.C
index b89f2159494aa836f937e62e6292c69778ed059e..b39c771b63003e0b6d834a5083b5d851ac9a02b9 100644 (file)
@@ -1,17 +1,29 @@
+/**
+ * \file copy.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #include <config.h>
 
 #include <fstream>
 
 #include "support/lyxlib.h"
-#include "LString.h"
+
 
 using std::ifstream;
 using std::ofstream;
 using std::ios;
+using std::string;
+
 
-bool lyx::copy(string const & from, string const & to)
+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(),