aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp-sh.el13
2 files changed, 13 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0b90c3c98ad..776925f28b4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-07-01 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
4 Prefer utf-8 coding. (Bug#17859)
5
12014-06-30 Fabián Ezequiel Gallina <fgallina@gnu.org> 62014-06-30 Fabián Ezequiel Gallina <fgallina@gnu.org>
2 7
3 * emacs-lisp/subr-x.el (string-reverse): Define as obsolete alias 8 * emacs-lisp/subr-x.el (string-reverse): Define as obsolete alias
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 68f1ef472f1..d906cc67674 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -3964,15 +3964,16 @@ process to set up. VEC specifies the connection."
3964 ;; Try to set up the coding system correctly. 3964 ;; Try to set up the coding system correctly.
3965 ;; CCC this can't be the right way to do it. Hm. 3965 ;; CCC this can't be the right way to do it. Hm.
3966 (tramp-message vec 5 "Determining coding system") 3966 (tramp-message vec 5 "Determining coding system")
3967 (tramp-send-command vec "echo foo ; echo bar" t)
3968 (with-current-buffer (process-buffer proc) 3967 (with-current-buffer (process-buffer proc)
3969 (goto-char (point-min))
3970 (if (featurep 'mule) 3968 (if (featurep 'mule)
3971 ;; Use MULE to select the right EOL convention for communicating 3969 ;; Use MULE to select the right EOL convention for communicating
3972 ;; with the process. 3970 ;; with the process.
3973 (let* ((cs (or (tramp-compat-funcall 'process-coding-system proc) 3971 (let ((cs (or (when (string-match
3974 (cons 'undecided 'undecided))) 3972 "utf8" (or (tramp-get-remote-locale vec) ""))
3975 cs-decode cs-encode) 3973 (cons 'utf-8 'utf-8))
3974 (tramp-compat-funcall 'process-coding-system proc)
3975 (cons 'undecided 'undecided)))
3976 cs-decode cs-encode)
3976 (when (symbolp cs) (setq cs (cons cs cs))) 3977 (when (symbolp cs) (setq cs (cons cs cs)))
3977 (setq cs-decode (car cs)) 3978 (setq cs-decode (car cs))
3978 (setq cs-encode (cdr cs)) 3979 (setq cs-encode (cdr cs))
@@ -3980,6 +3981,8 @@ process to set up. VEC specifies the connection."
3980 (unless cs-encode (setq cs-encode 'undecided)) 3981 (unless cs-encode (setq cs-encode 'undecided))
3981 (setq cs-encode (tramp-compat-coding-system-change-eol-conversion 3982 (setq cs-encode (tramp-compat-coding-system-change-eol-conversion
3982 cs-encode 'unix)) 3983 cs-encode 'unix))
3984 (tramp-send-command vec "echo foo ; echo bar" t)
3985 (goto-char (point-min))
3983 (when (search-forward "\r" nil t) 3986 (when (search-forward "\r" nil t)
3984 (setq cs-decode (tramp-compat-coding-system-change-eol-conversion 3987 (setq cs-decode (tramp-compat-coding-system-change-eol-conversion
3985 cs-decode 'dos))) 3988 cs-decode 'dos)))