mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-12 16:56:36 -04:00
Handle APFS file system in Tramp
* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell): Handle proper coding system for APFS file system. (Bug#81799)
This commit is contained in:
parent
54c3fbc2e0
commit
5aab23dc65
|
|
@ -4626,6 +4626,15 @@ process to set up. VEC specifies the connection."
|
|||
;; with the process.
|
||||
(let ((cs (or (and (memq 'utf-8-hfs (coding-system-list))
|
||||
(string-prefix-p "Darwin" uname)
|
||||
;; Starting from macOS High Sierra the default
|
||||
;; file system is APFS (see
|
||||
;; https://developer.apple.com/documentation/foundation/about-apple-file-system),
|
||||
;; and it is a non-normalizing file system.
|
||||
(let ((ver (string-trim
|
||||
(string-remove-prefix "Darwin" uname))))
|
||||
(condition-case nil
|
||||
(version< ver "17")
|
||||
(error t)))
|
||||
(cons 'utf-8-hfs 'utf-8-hfs))
|
||||
(and (memq 'utf-8 (coding-system-list))
|
||||
(string-match-p
|
||||
|
|
|
|||
Loading…
Reference in a new issue