From: Václav Slavík <vslavik@fastmail.fm> Date: Sun, 30 Dec 2001 00:05:49 +0000 (+0000) Subject: fix for DJGPP returning unix/like/paths instead of what\you'd\expect\under\dos X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4b00a538378ea4976f8dd0d5a23e9fcf43b58f64 fix for DJGPP returning unix/like/paths instead of what\you'd\expect\under\dos git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index c8b6040148..bfa2fe8663 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -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; }