summaryrefslogtreecommitdiff
path: root/lisp/net
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2015-12-15 23:54:11 +0100
committerMichael Albinus <michael.albinus@gmx.de>2015-12-15 23:54:11 +0100
commit80346f1ae4b3d56490e4a744df2bf1db00844ddc (patch)
tree1a354b102bfab98a8137916eb6a153a2882954e1 /lisp/net
parent0ad27a5aab529d507829c60fa79aad9866f492ab (diff)
downloademacs-80346f1ae4b3d56490e4a744df2bf1db00844ddc.tar.gz
Set utf8 encoding with stty in Tramp
* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell): Move up uname check. Handle Mac OS X eol encoding. Set utf8 encoding with stty.
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/tramp-sh.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index ebf646f26ff..6cd29c1ca6c 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -4288,6 +4288,10 @@ process to set up. VEC specifies the connection."
(tramp-get-connection-property vec "uname" ""))
(tramp-send-command vec "stty -oxtabs" t))
+ ;; Set utf8 encoding. Needed for Mac OS X, for example. This is
+ ;; non-POSIX, so we must expect errors on some systems.
+ (tramp-send-command vec "stty iutf8 2>/dev/null" t)
+
;; Set `remote-tty' process property.
(let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\"" 'noerror)))
(unless (zerop (length tty))