Added Mac Classic fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-12-15 21:56:53 +00:00
parent 1383482892
commit d0200d9eff

View File

@@ -441,6 +441,11 @@ wxFileName wxFileSystem::URLToFileName(const wxString& url)
{
path = path.Mid(5);
}
// Remove preceding double slash on Mac Classic
#if defined(__WXMAC__) && !defined(__UNIX__)
else if ( path.Find(wxT("//")) == 0 )
path = path.Mid(2);
#endif
path.Replace(wxT("%25"), wxT("%"));
path.Replace(wxT("%3A"), wxT(":"));
@@ -482,6 +487,10 @@ wxString wxFileSystem::FileNameToURL(const wxFileName& filename)
else
{
url = wxT("/") + url;
#ifdef __WXMAC__
url = wxT("/") + url;
#endif
}
#endif