From 832966e57f6290e09bb5b477f4d947df53c230d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Sun, 29 Sep 2013 19:09:39 +0200 Subject: [PATCH] * term/ns-win.el (ns-initialize-window-system): Set locale-coding-system and default-process-coding-system to utf-8-unix. Fixes: debbugs:15402 --- lisp/ChangeLog | 5 +++++ lisp/term/ns-win.el | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9395df089bb..3da4cef6952 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-09-29 Jan Djärv + + * term/ns-win.el (ns-initialize-window-system): Set locale-coding-system + and default-process-coding-system to utf-8-unix (Bug#15402). + 2013-09-29 Xue Fuqiao * subr.el (looking-back): Do not recommend using looking-back. diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index 53c602048ff..91849dbbdcf 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el @@ -912,6 +912,13 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.") ;; FIXME: This will surely lead to "MODIFIED OUTSIDE CUSTOM" warnings. (menu-bar-mode (if (get-lisp-resource nil "Menus") 1 -1)) + ;; For NS nothing except UTF-8 makes sense. + (add-hook 'before-init-hook + #'(lambda () + (setq locale-coding-system 'utf-8-unix) + (setq default-process-coding-system + '(utf-8-unix . utf-8-unix)))) + ;; OS X Lion introduces PressAndHold, which is unsupported by this port. ;; See this thread for more details: ;; http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00505.html -- 2.39.2