aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Innes1999-03-25 22:49:36 +0000
committerAndrew Innes1999-03-25 22:49:36 +0000
commitb1ed864845e6ee9f7c781ee6dea6025deba81f48 (patch)
tree3aa3aa1cb3edab083bcf13a6637a6690cfe8e492
parentf601cd3e35ea507c8e5a253e1ff20b4c6f4f79cd (diff)
downloademacs-b1ed864845e6ee9f7c781ee6dea6025deba81f48.tar.gz
emacs-b1ed864845e6ee9f7c781ee6dea6025deba81f48.zip
(set-default-process-coding-system): Copied from
dos-w32.el, but modified to use Unix line endings for process input, and to add a suitable entry to process-coding-system-alist for DOS shells.
-rw-r--r--lisp/w32-fns.el20
1 files changed, 20 insertions, 0 deletions
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el
index 33db6c011d5..1e12f177f87 100644
--- a/lisp/w32-fns.el
+++ b/lisp/w32-fns.el
@@ -137,6 +137,26 @@ You should set this to t when using a non-system shell.\n\n"))))
137 137
138(add-hook 'after-init-hook 'w32-check-shell-configuration) 138(add-hook 'after-init-hook 'w32-check-shell-configuration)
139 139
140;;; Override setting chosen at startup.
141(defun set-default-process-coding-system ()
142 ;; Most programs on Windows will accept Unix line endings on input
143 ;; (and some programs ported from Unix require it) but most will
144 ;; produce DOS line endings on output.
145 (setq default-process-coding-system
146 (if default-enable-multibyte-characters
147 '(undecided-dos . undecided-unix)
148 '(raw-text-dos . raw-text-unix)))
149 (or (w32-using-nt)
150 ;; On Windows 9x, make cmdproxy default to using DOS line endings
151 ;; for input, because command.com requires this.
152 (setq process-coding-system-alist
153 `(("[cC][mM][dD][pP][rR][oO][xX][yY]"
154 . ,(if default-enable-multibyte-characters
155 '(undecided-dos . undecided-dos)
156 '(raw-text-dos . raw-text-dos)))))))
157
158(add-hook 'before-init-hook 'set-default-process-coding-system)
159
140 160
141;;; Basic support functions for managing Emacs' locale setting 161;;; Basic support functions for managing Emacs' locale setting
142 162