]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for DJGPP returning unix/like/paths instead of what\you'd\expect\under\dos
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 30 Dec 2001 00:05:49 +0000 (00:05 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 30 Dec 2001 00:05:49 +0000 (00:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index c8b6040148df31cc83f9aa96ed2c12b4da05abe0..bfa2fe86635114366ad6deefa4cf125f5170daaa 100644 (file)
@@ -1445,6 +1445,13 @@ wxChar *wxGetWorkingDirectory(wxChar *buf, int sz)
     delete [] cbuf;
   }
 #endif
+
+#ifdef __DJGPP__
+  // VS: DJGPP is Unicodish and uses / instead of \ as path deliminer. We don't like that.
+  for (wxChar *ch = buf; *ch; ch++)
+    if (*ch == wxT('/')) *ch = wxT('\\');
+#endif
+
   return buf;
 }