]> git.eshelyaron.com Git - emacs.git/commitdiff
* term/ns-win.el (ns-initialize-window-system): Set locale-coding-system
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 29 Sep 2013 17:09:39 +0000 (19:09 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 29 Sep 2013 17:09:39 +0000 (19:09 +0200)
and default-process-coding-system to utf-8-unix.

Fixes: debbugs:15402
lisp/ChangeLog
lisp/term/ns-win.el

index 9395df089bb50065df0a5c353519b99ad7562a78..3da4cef695276c6893efa973ca588d0afec34433 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-29  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * 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  <xfq.free@gmail.com>
 
        * subr.el (looking-back): Do not recommend using looking-back.
index 53c602048ff09cd258357370f82a6eab3acda39d..91849dbbdcf9b5715cc0c5ea8d7dcb6691e362fa 100644 (file)
@@ -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