changeset 103684:9f50c5639e4c

(set-keyboard-coding-system): Force *-unix coding-system to avoid eol conversion.
author Kenichi Handa <handa@m17n.org>
date Thu, 02 Jul 2009 06:42:46 +0000
parents a3a9b0c129af
children efcbacf4ad40
files lisp/international/mule.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/international/mule.el	Thu Jul 02 02:31:57 2009 +0000
+++ b/lisp/international/mule.el	Thu Jul 02 06:42:46 2009 +0000
@@ -1310,7 +1310,10 @@
 					'keyboard-coding-saved-meta-mode
 					(cons (nth 2 (current-input-mode))
 					      nil)))
-	    (set-input-meta-mode 8)))
+	    (set-input-meta-mode 8))
+	  ;; Avoid end-of-line conversion.
+	  (setq coding-system
+		(coding-system-change-eol-conversion coding-system 'unix)))
 
       (when saved-meta-mode
 	(set-input-meta-mode (car saved-meta-mode))