]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fw32_shell_execute): Encode parameters.
authorJason Rumney <jasonr@gnu.org>
Mon, 18 Feb 2008 11:34:29 +0000 (11:34 +0000)
committerJason Rumney <jasonr@gnu.org>
Mon, 18 Feb 2008 11:34:29 +0000 (11:34 +0000)
src/w32fns.c

index e9fafc687cd992de95b8248a37d97bb7db831b72..e02eff1b95ddea611c860fbdb886b28e51554d08 100644 (file)
@@ -8105,9 +8105,12 @@ an integer representing a ShowWindow flag:
 
   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),