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;
|   ofstream ofs(to.c_str(),
>
| Googling comes up with this:
>
| http://gcc.gnu.org/ml/gcc/1998-11/msg00258.html
| Under unix, binary file IO is always the case.  Note that in the 
| iostreams library, binary means the same thing it means in ftp ... do 
| not convert line ends.  therefore:
>
| Sinse we don't support network protocols like ftp, I think that this 
| patch is entirely safe. Agreed?

Yes. and even with ftp it would be fine.

-- 
        Lgb

Reply via email to