]> git.saurik.com Git - wxWidgets.git/commit - src/common/mimecmn.cpp
Quote file names with spaces in wxFileType::ExpandCommand().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jun 2010 17:43:35 +0000 (17:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jun 2010 17:43:35 +0000 (17:43 +0000)
commit9ac34ac9156ea40ad76025aedb6eef86b2a813cc
treeed22125051ea004e539cb7ec756fc7a3f55654c9
parent621860064662aa80ba4fdc21ca55b6d33c1bea11
Quote file names with spaces in wxFileType::ExpandCommand().

Add double quotes around the file name inserted into the command to open the
file by wxFileType::ExpandCommand() if the file name contains any spaces and
if it's not already quoted by the command line itself.

While this doesn't completely fix the problem, it does help with opening the
files with spaces in their names under Windows and shouldn't do any harm under
Unix.

Closes #4607.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/mimecmn.cpp