]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/term/ns-win.el (ns-initialize-window-system): Set locale-coding-system
authorJan Djärv <jan.h.d@swipnet.se>
Tue, 1 Oct 2013 18:22:48 +0000 (20:22 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Tue, 1 Oct 2013 18:22:48 +0000 (20:22 +0200)
and default-process-coding-system for darwin only.

lisp/ChangeLog
lisp/term/ns-win.el

index 8707c02f5401e66850b1b8f10f203bfb3cc31d72..49cb49dd8930b6a6dabe9cc1c38395920ae6b2a5 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-01  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 for darwin only.
+
 2013-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * emacs-lisp/package.el (package-desc): Simplify (bug#15495).
index 91849dbbdcf9b5715cc0c5ea8d7dcb6691e362fa..bc9cab375bf5e521850b101b67e3295f23d9b089 100644 (file)
@@ -912,12 +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))))
+  ;; For Darwin nothing except UTF-8 makes sense.
+  (when (eq system-type 'darwin)
+      (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: