Jean-Marc Lasgouttes wrote:
> Angus> So, the 'culprit' is lyx::copy which is telling us that all
> Angus> succeeded when, in fact, it didn't.
> 
> Angus> Here's support/copy.C. Do we need to flush the ofstream? Lars,
> Angus> what's the official take on this? Irrespective of the official
> Angus> take, does adding a 'flush()' help?
> 
> Note also that the ios::binary has been added recently.

Specifically, I changed this on 14 Dec:

-    ifstream ifs(from.c_str());
+    ifstream ifs(from.c_str(), ios::binary);

Try out Lar's suggestion of a small stand-alone program. Makes it easy to 
see which suggested change makes a difference for you.

-- 
Angus

Reply via email to