aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2014-03-10 14:36:39 +0100
committerMichael Albinus2014-03-10 14:36:39 +0100
commit183d706e358cd10fbb423cbeef6fa8283979fa30 (patch)
treea79fa2ef0270b69c703a5e698b6d94505f3a9f16
parentd988d8a475f3aaa5cfc3a7fdfd64e8dbc2e60d71 (diff)
downloademacs-183d706e358cd10fbb423cbeef6fa8283979fa30.tar.gz
emacs-183d706e358cd10fbb423cbeef6fa8283979fa30.zip
* net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Do not add `nil' to the environment, when there's no remote `locale'. (tramp-find-inline-encoding): Check, that the remote host has installed perl, before sending scripts.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/net/tramp-sh.el9
2 files changed, 15 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0f675a642ff..04b85f0ecd2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12014-03-10 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
4 Do not add `nil' to the environment, when there's no remote `locale'.
5 (tramp-find-inline-encoding): Check, that the remote host has
6 installed perl, before sending scripts.
7
12014-03-10 Leo Liu <sdl.web@gmail.com> 82014-03-10 Leo Liu <sdl.web@gmail.com>
2 9
3 * emacs-lisp/eldoc.el (eldoc-minibuffer-message): Clear 10 * emacs-lisp/eldoc.el (eldoc-minibuffer-message): Clear
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index a6bfe7236b1..ee37373a0fa 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -3951,7 +3951,8 @@ process to set up. VEC specifies the connection."
3951 ;; Set the environment. 3951 ;; Set the environment.
3952 (tramp-message vec 5 "Setting default environment") 3952 (tramp-message vec 5 "Setting default environment")
3953 3953
3954 (let ((env (append `(,(tramp-get-remote-locale vec)) 3954 (let ((env (append (when (tramp-get-remote-locale vec) ; Discard `(nil)'.
3955 `(,(tramp-get-remote-locale vec)))
3955 (copy-sequence tramp-remote-process-environment))) 3956 (copy-sequence tramp-remote-process-environment)))
3956 unset item) 3957 unset item)
3957 (while env 3958 (while env
@@ -4090,6 +4091,10 @@ Goes through the list `tramp-local-coding-commands' and
4090 vec 5 "Checking remote test command `%s'" rem-test) 4091 vec 5 "Checking remote test command `%s'" rem-test)
4091 (unless (tramp-send-command-and-check vec rem-test t) 4092 (unless (tramp-send-command-and-check vec rem-test t)
4092 (throw 'wont-work-remote nil))) 4093 (throw 'wont-work-remote nil)))
4094 ;; Check if remote perl exists when necessary.
4095 (when (and (not (stringp rem-enc))
4096 (not (tramp-get-remote-perl vec)))
4097 (throw 'wont-work-remote nil))
4093 ;; Check if remote encoding and decoding commands can be 4098 ;; Check if remote encoding and decoding commands can be
4094 ;; called remotely with null input and output. This makes 4099 ;; called remotely with null input and output. This makes
4095 ;; sure there are no syntax errors and the command is really 4100 ;; sure there are no syntax errors and the command is really
@@ -5314,5 +5319,7 @@ function cell is returned to be applied on a buffer."
5314;; rsync. 5319;; rsync.
5315;; * Try telnet+curl as new method. It might be useful for busybox, 5320;; * Try telnet+curl as new method. It might be useful for busybox,
5316;; without built-in uuencode/uudecode. 5321;; without built-in uuencode/uudecode.
5322;; * Try telnet+nc as new method. It might be useful for busybox,
5323;; without built-in uuencode/uudecode.
5317 5324
5318;;; tramp-sh.el ends here 5325;;; tramp-sh.el ends here