aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/net/tramp-sh.el3
-rw-r--r--lisp/net/tramp.el9
-rw-r--r--test/lisp/net/tramp-tests.el6
3 files changed, 11 insertions, 7 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 3fb15888ca8..14c6f949853 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -4790,6 +4790,9 @@ connection if a previous connection has died for some reason."
4790 (options (tramp-ssh-controlmaster-options vec)) 4790 (options (tramp-ssh-controlmaster-options vec))
4791 (process-connection-type tramp-process-connection-type) 4791 (process-connection-type tramp-process-connection-type)
4792 (process-adaptive-read-buffering nil) 4792 (process-adaptive-read-buffering nil)
4793 ;; There are unfortune settings for "cmdproxy" on
4794 ;; W32 systems.
4795 (process-coding-system-alist nil)
4793 (coding-system-for-read nil) 4796 (coding-system-for-read nil)
4794 ;; This must be done in order to avoid our file 4797 ;; This must be done in order to avoid our file
4795 ;; name handler. 4798 ;; name handler.
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index d6911def5f2..28fc9c748bb 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -120,9 +120,7 @@ This setting has precedence over `auto-save-file-name-transforms'."
120 (directory :tag "Auto save directory name"))) 120 (directory :tag "Auto save directory name")))
121 121
122(defcustom tramp-encoding-shell 122(defcustom tramp-encoding-shell
123 (if (boundp 'w32-shell-name) 123 (or (tramp-compat-funcall 'w32-shell-name) "/bin/sh")
124 (symbol-value 'w32-shell-name)
125 "/bin/sh")
126 "Use this program for encoding and decoding commands on the local host. 124 "Use this program for encoding and decoding commands on the local host.
127This shell is used to execute the encoding and decoding command on the 125This shell is used to execute the encoding and decoding command on the
128local host, so if you want to use `~' in those commands, you should 126local host, so if you want to use `~' in those commands, you should
@@ -145,14 +143,15 @@ use for the remote host."
145 :group 'tramp 143 :group 'tramp
146 :type '(file :must-match t)) 144 :type '(file :must-match t))
147 145
148(defcustom tramp-encoding-command-switch (if (boundp 'w32-shell-name) "/c" "-c") 146(defcustom tramp-encoding-command-switch
147 (if (tramp-compat-funcall 'w32-shell-dos-semantics) "/c" "-c")
149 "Use this switch together with `tramp-encoding-shell' for local commands. 148 "Use this switch together with `tramp-encoding-shell' for local commands.
150See the variable `tramp-encoding-shell' for more information." 149See the variable `tramp-encoding-shell' for more information."
151 :group 'tramp 150 :group 'tramp
152 :type 'string) 151 :type 'string)
153 152
154(defcustom tramp-encoding-command-interactive 153(defcustom tramp-encoding-command-interactive
155 (unless (boundp 'w32-shell-name) "-i") 154 (unless (tramp-compat-funcall 'w32-shell-dos-semantics) "-i")
156 "Use this switch together with `tramp-encoding-shell' for interactive shells. 155 "Use this switch together with `tramp-encoding-shell' for interactive shells.
157See the variable `tramp-encoding-shell' for more information." 156See the variable `tramp-encoding-shell' for more information."
158 :version "24.1" 157 :version "24.1"
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 6553421c5bc..468ed4a36ff 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -1380,8 +1380,10 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1380 1380
1381 (unwind-protect 1381 (unwind-protect
1382 (progn 1382 (progn
1383 ;; Method and host name in completion mode. 1383 ;; Method and host name in completion mode. This kind of
1384 (when (tramp-completion-mode-p) 1384 ;; completion does not work on MS Windows.
1385 (when (and (tramp-completion-mode-p)
1386 (not (memq system-type '(cygwin windows-nt))))
1385 (unless (zerop (length method)) 1387 (unless (zerop (length method))
1386 (should 1388 (should
1387 (member 1389 (member