emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r114483: * term/ns-win.el (ns-initialize-window-syst


From: Jan D.
Subject: [Emacs-diffs] trunk r114483: * term/ns-win.el (ns-initialize-window-system): Set locale-coding-system
Date: Sun, 29 Sep 2013 17:09:42 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 114483
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/15402
committer: Jan D. <address@hidden>
branch nick: trunk
timestamp: Sun 2013-09-29 19:09:39 +0200
message:
  * term/ns-win.el (ns-initialize-window-system): Set locale-coding-system
  and default-process-coding-system to utf-8-unix.
modified:
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/term/ns-win.el            nswin.el-20091113204419-o5vbwnq5f7feedwu-8708
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-09-29 06:16:45 +0000
+++ b/lisp/ChangeLog    2013-09-29 17:09:39 +0000
@@ -1,3 +1,8 @@
+2013-09-29  Jan Djärv  <address@hidden>
+
+       * 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  <address@hidden>
 
        * subr.el (looking-back): Do not recommend using looking-back.

=== modified file 'lisp/term/ns-win.el'
--- a/lisp/term/ns-win.el       2013-09-18 04:36:34 +0000
+++ b/lisp/term/ns-win.el       2013-09-29 17:09:39 +0000
@@ -912,6 +912,13 @@
   ;; 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]