diff options
| author | Michael Albinus | 2015-12-15 23:54:11 +0100 |
|---|---|---|
| committer | Michael Albinus | 2015-12-15 23:54:11 +0100 |
| commit | 80346f1ae4b3d56490e4a744df2bf1db00844ddc (patch) | |
| tree | 1a354b102bfab98a8137916eb6a153a2882954e1 | |
| parent | 0ad27a5aab529d507829c60fa79aad9866f492ab (diff) | |
| download | emacs-80346f1ae4b3d56490e4a744df2bf1db00844ddc.tar.gz emacs-80346f1ae4b3d56490e4a744df2bf1db00844ddc.zip | |
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.
| -rw-r--r-- | lisp/net/tramp-sh.el | 4 |
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." | |||
| 4288 | (tramp-get-connection-property vec "uname" "")) | 4288 | (tramp-get-connection-property vec "uname" "")) |
| 4289 | (tramp-send-command vec "stty -oxtabs" t)) | 4289 | (tramp-send-command vec "stty -oxtabs" t)) |
| 4290 | 4290 | ||
| 4291 | ;; Set utf8 encoding. Needed for Mac OS X, for example. This is | ||
| 4292 | ;; non-POSIX, so we must expect errors on some systems. | ||
| 4293 | (tramp-send-command vec "stty iutf8 2>/dev/null" t) | ||
| 4294 | |||
| 4291 | ;; Set `remote-tty' process property. | 4295 | ;; Set `remote-tty' process property. |
| 4292 | (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\"" 'noerror))) | 4296 | (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\"" 'noerror))) |
| 4293 | (unless (zerop (length tty)) | 4297 | (unless (zerop (length tty)) |