Don't escape file names partially

This commit is contained in:
Zane U. Ji 2014-04-27 20:58:41 +08:00
parent 51b1bd3829
commit 47483ca5d8
3 changed files with 0 additions and 7 deletions

View File

@ -182,8 +182,6 @@ void AssociateDialog::OnBrowse ( wxCommandEvent& e )
if ( fd->ShowModal() == wxID_OK )
{
wxString newValue = fd->GetPath();
newValue.Replace ( _T ( "\\" ), _T ( "/" ), true );
newValue.Replace ( _T ( " " ), _T ( "%20" ), true );
urlCtrl->SetValue ( newValue );
if ( mLastDir )

View File

@ -44,7 +44,6 @@ XmlAssociateXsd::XmlAssociateXsd (
std::auto_ptr<XmlParseSchemaNs> parser ( new XmlParseSchemaNs() );
std::string normalisedPath, buffer;
normalisedPath = path.mb_str ( wxConvLocal );
Replace::run ( normalisedPath, "%20", " ", true );
if ( !ReadFile::run ( normalisedPath, buffer ) )
return;
parser->parse ( buffer );

View File

@ -711,9 +711,6 @@ MyFrame::MyFrame (
lastRelaxNGSchema =
config->Read ( _T ( "lastRelaxNGSchema" ), wxEmptyString );
lastXslStylesheet.Replace ( _T ( " " ), _T ( "%20" ), true );
lastRelaxNGSchema.Replace ( _T ( " " ), _T ( "%20" ), true );
exportQuiet =
config->Read ( _T ( "exportQuiet" ), (long)true );
exportMp3Album =
@ -4091,7 +4088,6 @@ void MyFrame::OnXslt ( wxCommandEvent& event )
std::string location = xl.getXslLocation();
path = wxString ( location.c_str(), wxConvUTF8, location.size() );
path.Replace ( _T ( "%20" ), _T ( " " ), true );
path = PathResolver::run ( path, doc->getFullFileName() );