diff options
| author | Michael Albinus | 2015-12-07 08:15:27 +0000 |
|---|---|---|
| committer | Michael Albinus | 2015-12-07 08:15:27 +0000 |
| commit | eb85d55cea4c5a715c4381ab6aeee630183fa23e (patch) | |
| tree | 7454443935b7af02c62d2949b64e43fa0f3c3b86 | |
| parent | 0a45afa30fae6543fd21f3102ae259f02c1b9042 (diff) | |
| download | emacs-eb85d55cea4c5a715c4381ab6aeee630183fa23e.tar.gz emacs-eb85d55cea4c5a715c4381ab6aeee630183fa23e.zip | |
Fix an utf8 problem for Tramp on BSD
* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Make lax check for utf8.
(tramp-get-remote-locale): Add "en_US.UTF-8" as candidate.
| -rw-r--r-- | lisp/net/tramp-sh.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 2c2179e8285..c1df1c602d5 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -4149,7 +4149,8 @@ seconds. If not, it produces an error message with the given ERROR-ARGS." | |||
| 4149 | "Set up an interactive shell. | 4149 | "Set up an interactive shell. |
| 4150 | Mainly sets the prompt and the echo correctly. PROC is the shell | 4150 | Mainly sets the prompt and the echo correctly. PROC is the shell |
| 4151 | process to set up. VEC specifies the connection." | 4151 | process to set up. VEC specifies the connection." |
| 4152 | (let ((tramp-end-of-output tramp-initial-end-of-output)) | 4152 | (let ((tramp-end-of-output tramp-initial-end-of-output) |
| 4153 | (case-fold-search t)) | ||
| 4153 | (tramp-open-shell vec (tramp-get-method-parameter vec 'tramp-remote-shell)) | 4154 | (tramp-open-shell vec (tramp-get-method-parameter vec 'tramp-remote-shell)) |
| 4154 | 4155 | ||
| 4155 | ;; Disable tab and echo expansion. | 4156 | ;; Disable tab and echo expansion. |
| @@ -4182,7 +4183,7 @@ process to set up. VEC specifies the connection." | |||
| 4182 | ;; Use MULE to select the right EOL convention for communicating | 4183 | ;; Use MULE to select the right EOL convention for communicating |
| 4183 | ;; with the process. | 4184 | ;; with the process. |
| 4184 | (let ((cs (or (and (memq 'utf-8 (coding-system-list)) | 4185 | (let ((cs (or (and (memq 'utf-8 (coding-system-list)) |
| 4185 | (string-match "utf8" (tramp-get-remote-locale vec)) | 4186 | (string-match "utf-?8" (tramp-get-remote-locale vec)) |
| 4186 | (cons 'utf-8 'utf-8)) | 4187 | (cons 'utf-8 'utf-8)) |
| 4187 | (tramp-compat-funcall 'process-coding-system proc) | 4188 | (tramp-compat-funcall 'process-coding-system proc) |
| 4188 | (cons 'undecided 'undecided))) | 4189 | (cons 'undecided 'undecided))) |
| @@ -5358,7 +5359,7 @@ Return ATTR." | |||
| 5358 | (defun tramp-get-remote-locale (vec) | 5359 | (defun tramp-get-remote-locale (vec) |
| 5359 | (with-tramp-connection-property vec "locale" | 5360 | (with-tramp-connection-property vec "locale" |
| 5360 | (tramp-send-command vec "locale -a") | 5361 | (tramp-send-command vec "locale -a") |
| 5361 | (let ((candidates '("en_US.utf8" "C.utf8")) | 5362 | (let ((candidates '("en_US.utf8" "C.utf8" "en_US.UTF-8")) |
| 5362 | locale) | 5363 | locale) |
| 5363 | (with-current-buffer (tramp-get-connection-buffer vec) | 5364 | (with-current-buffer (tramp-get-connection-buffer vec) |
| 5364 | (while candidates | 5365 | (while candidates |