changeset 80140:001f79563e5a

(Fw32_shell_execute): Encode parameters.
author Jason Rumney <jasonr@gnu.org>
date Mon, 18 Feb 2008 11:34:29 +0000
parents 26cb935bb79d
children 00b853b0f933
files src/w32fns.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Mon Feb 18 11:32:37 2008 +0000
+++ b/src/w32fns.c	Mon Feb 18 11:34:29 2008 +0000
@@ -8105,9 +8105,12 @@
 
   CHECK_STRING (document);
 
-  /* Encode filename and current directory.  */
+  /* Encode filename, current directory and parameters.  */
   current_dir = ENCODE_FILE (current_buffer->directory);
   document = ENCODE_FILE (document);
+  if (STRINGP (parameters))
+    parameters = ENCODE_SYSTEM (parameters);
+
   if ((int) ShellExecute (NULL,
 			  (STRINGP (operation) ?
 			   SDATA (operation) : NULL),