summaryrefslogtreecommitdiff
path: root/lisp/dos-w32.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>1998-04-15 15:02:22 +0000
committerEli Zaretskii <eliz@gnu.org>1998-04-15 15:02:22 +0000
commit0b61968932a7d3424ad716a048abc71259092b09 (patch)
tree7a777ce9d9add64bd979315789a82eba7cc13f17 /lisp/dos-w32.el
parenta749e5e5665925f6ae679cdb6d6d10bbb3de61f6 (diff)
downloademacs-0b61968932a7d3424ad716a048abc71259092b09.tar.gz
(find-binary-process-coding-system): Remove.
(default-process-coding-system): Make it be raw-text-dos if async processes are supported, undecided-dos otherwise.
Diffstat (limited to 'lisp/dos-w32.el')
-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:\"."
(delete (untranslated-canonical-name filesystem)
untranslated-filesystem-list)))
-;; Process I/O decoding and encoding.
-
-(defun find-binary-process-coding-system (command)
- "Choose a coding system for process I/O.
-The coding system for decode is 'no-conversion' if 'binary-process-output'
-is non-nil, and 'undecided-dos' otherwise. Similarly, the coding system
-for encode is 'no-conversion' if 'binary-process-input' is non-nil,
-and 'undecided-dos' otherwise."
- (let ((decode 'undecided-dos)
- (encode 'undecided-dos))
- (if binary-process-output
- (setq decode 'no-conversion))
- (if binary-process-input
- (setq encode 'no-conversion))
- (cons decode encode)))
-
-(modify-coding-system-alist 'process "" 'find-binary-process-coding-system)
-
+(setq-default default-process-coding-system
+ (if (fboundp 'start-process)
+ '(raw-text-dos . raw-text-dos)
+ '(undecided-dos . undecided-dos)))
(provide 'dos-w32)