path = path.Mid(7) ;
}
-/*
+#ifndef __UNIX__
// file urls either start with a forward slash (local harddisk),
// otherwise they have a servername/sharename notation,
// which only exists on msw and corresponds to a unc
{
path = path.Mid(1) ;
}
-#ifdef __WXMSW__
else if ( (url.Find(wxT("file://")) == 0) &&
(path.Find(wxT('/')) != wxNOT_FOUND) &&
(path.Length() > 1) && (path[1u] != wxT(':')) )
{
- path = wxT("\\\\") + path ;
+ path = wxT("//") + path ;
}
#endif
-*/
path.Replace(g_unixPathString, g_nativePathString) ;
{
wxString url = path ;
-/*
#ifdef __WXMSW__
// unc notation
if ( url.Find(wxT("\\\\")) == 0 )
{
url = wxT("/") + url ;
}
-*/
url.Replace(g_nativePathString, g_unixPathString) ;
url = wxT("file://") + url ;