aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii1998-04-15 15:02:22 +0000
committerEli Zaretskii1998-04-15 15:02:22 +0000
commit0b61968932a7d3424ad716a048abc71259092b09 (patch)
tree7a777ce9d9add64bd979315789a82eba7cc13f17
parenta749e5e5665925f6ae679cdb6d6d10bbb3de61f6 (diff)
downloademacs-0b61968932a7d3424ad716a048abc71259092b09.tar.gz
emacs-0b61968932a7d3424ad716a048abc71259092b09.zip
(find-binary-process-coding-system): Remove.
(default-process-coding-system): Make it be raw-text-dos if async processes are supported, undecided-dos otherwise.
-rw-r--r--lisp/dos-w32.el22
1 files changed, 4 insertions, 18 deletions
diff --git a/lisp/dos-w32.el b/lisp/dos-w32.el
index a4473598aa4..a03617ffd24 100644
--- a/lisp/dos-w32.el
+++ b/lisp/dos-w32.el
@@ -244,24 +244,10 @@ filesystem mounted on drive Z:, FILESYSTEM could be \"Z:\"."
244 (delete (untranslated-canonical-name filesystem) 244 (delete (untranslated-canonical-name filesystem)
245 untranslated-filesystem-list))) 245 untranslated-filesystem-list)))
246 246
247;; Process I/O decoding and encoding. 247(setq-default default-process-coding-system
248 248 (if (fboundp 'start-process)
249(defun find-binary-process-coding-system (command) 249 '(raw-text-dos . raw-text-dos)
250 "Choose a coding system for process I/O. 250 '(undecided-dos . undecided-dos)))
251The coding system for decode is 'no-conversion' if 'binary-process-output'
252is non-nil, and 'undecided-dos' otherwise. Similarly, the coding system
253for encode is 'no-conversion' if 'binary-process-input' is non-nil,
254and 'undecided-dos' otherwise."
255 (let ((decode 'undecided-dos)
256 (encode 'undecided-dos))
257 (if binary-process-output
258 (setq decode 'no-conversion))
259 (if binary-process-input
260 (setq encode 'no-conversion))
261 (cons decode encode)))
262
263(modify-coding-system-alist 'process "" 'find-binary-process-coding-system)
264
265 251
266(provide 'dos-w32) 252(provide 'dos-w32)
267 253