Use ios__binary mode to copy files.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9369 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2004-12-14 14:17:13 +00:00
parent fb28ff9e2a
commit 548a928e9b
2 changed files with 5 additions and 1 deletions

View 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.

View 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(),