]> git.lyx.org Git - lyx.git/blobdiff - src/support/environment.C
hopefully fix tex2lyx linking.
[lyx.git] / src / support / environment.C
index c1a5710978608c5e304ccde41ed541fcd7a907bd..616025cf2a47ee78e0c790cab5805937a77bf673 100644 (file)
@@ -95,7 +95,14 @@ void setEnvPath(string const & name, vector<string> const & env)
        for (; it != end; ++it) {
                if (it != begin)
                        ss << separator;
+#if defined(__CYGWIN__) || defined(__CYGWIN32__)
+               // On cygwin, os::external_path returns either posix or
+               // pseudo-win style paths, but here we always need posix style.
+               // This fixes bug 2344.
+               ss << os::internal_path(*it);
+#else
                ss << os::external_path(*it);
+#endif
        }
        setEnv(name, ss.str());
 }