mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
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:
parent
2237e799ed
commit
40113d7c95
@ -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.
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user