Re: Binary mode ifstream.

2004-12-13 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Ruurd has the following one line patch: > | Index: src/support/copy.C | | 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; | ofs

Binary mode ifstream.

2004-12-13 Thread Angus Leeming
Ruurd has the following one line patch: Index: src/support/copy.C 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(), Googling comes up with this: http://gcc.