mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
fb28ff9e2a
commit
548a928e9b
@ -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.
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user