diff --git a/src/wraplibxml.cpp b/src/wraplibxml.cpp index ac90517..92ff335 100644 --- a/src/wraplibxml.cpp +++ b/src/wraplibxml.cpp @@ -733,8 +733,13 @@ wxFileName WrapLibxml::URLToFileName ( const wxString &url ) do { if ( uri->scheme == NULL || strcmp (uri->scheme, "file" ) ) break; +#ifdef _MSC_VER if ( uri->server && stricmp ( uri->server, "localhost") ) break; +#else + if ( uri->server && strcasecmp ( uri->server, "localhost") ) + break; +#endif if ( uri->path == NULL || !*uri->path ) break; diff --git a/src/xercescatalogresolver.cpp b/src/xercescatalogresolver.cpp index f5329cd..776642c 100644 --- a/src/xercescatalogresolver.cpp +++ b/src/xercescatalogresolver.cpp @@ -24,7 +24,7 @@ InputSource *XercesCatalogResolver::resolveEntity ( // Xerces-C++ can't open a file URL when there are multi-byte characters. // Parse the file URL here instead. - wxFileName file = WrapLibxml::URLToFileName ( systemId ); + wxFileName file = WrapLibxml::URLToFileName ( sysId ); if ( file.IsFileReadable() ) return new LocalFileInputSource ( ( const XMLCh * ) WrapXerces::toString ( file.GetFullPath() ).GetData() );