Use ios__binary mode to copy files.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@9370 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2004-12-14 14:17:17 +00:00
parent 2237e799ed
commit 40113d7c95
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

@ -11,7 +11,7 @@ using std::ios;
bool lyx::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(),