diff --git a/src/support/ChangeLog b/src/support/ChangeLog index d4a67ce456..4e3ac4b2a1 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,7 @@ +2004-12-14 Angus Leeming + + * copy.C (copy): open the ifstream with ios::binary. + 2004-12-14 Angus Leeming * os.C: Add _WIN32 to the #define. diff --git a/src/support/copy.C b/src/support/copy.C index b89f215949..0d0c32b98b 100644 --- a/src/support/copy.C +++ b/src/support/copy.C @@ -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(),