git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51904
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
url.Replace(g_nativePathString, g_unixPathString);
url.Replace(wxT("%"), wxT("%25")); // '%'s must be replaced first!
url.Replace(wxT("#"), wxT("%23"));
url.Replace(g_nativePathString, g_unixPathString);
url.Replace(wxT("%"), wxT("%25")); // '%'s must be replaced first!
url.Replace(wxT("#"), wxT("%23"));
+#ifndef __WXMSW__
+ // even though encoding the colon is (AFAICS) the right thing to do, we
+ // shouldn't do this under Windows because IE refuses to handle the
+ // resulting file:// URLs and Firefox and Opera (and probably all the other
+ // browsers as they need to be IE-compatible anyhow) open both the versions
+ // with ':' and "%3A", so leave the colon alone to keep IE happy
url.Replace(wxT(":"), wxT("%3A"));
url.Replace(wxT(":"), wxT("%3A"));
url = wxT("file:") + url;
return url;
}
url = wxT("file:") + url;
return url;
}