Georg Baum wrote:
Am Dienstag, 5. Dezember 2006 21:57 schrieb Edwin Leuven:
thanks, the attached solves the crash. is this the correct way to do it?
Almost. It should be done as early as possible, in this case in
src/support/getcwd.C.
like this?
Index: getcwd.C
===================================================================
--- getcwd.C (revision 16186)
+++ getcwd.C (working copy)
@@ -11,6 +11,7 @@
#include <config.h>
#include "support/lyxlib.h"
+#include "support/os.h"
#include <boost/scoped_array.hpp>
@@ -27,6 +28,7 @@
#endif
using boost::scoped_array;
+using os::support::internal_path;
using std::string;
@@ -64,7 +66,7 @@
string result;
if (err)
result = tbuf.get();
- return result;
+ return internal_path(result);
}