emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 80346f1: Set utf8 encoding with stty in Tramp


From: Michael Albinus
Subject: [Emacs-diffs] emacs-25 80346f1: Set utf8 encoding with stty in Tramp
Date: Tue, 15 Dec 2015 22:54:21 +0000

branch: emacs-25
commit 80346f1ae4b3d56490e4a744df2bf1db00844ddc
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    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.
---
 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 ebf646f..6cd29c1 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]