+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.
2004-12-14 Angus Leeming <leeming@lyx.org>
* os.C: Add _WIN32 to the #define.
bool lyx::support::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(),
if (!ifs)
return false;
ofstream ofs(to.c_str(),