From 0b61968932a7d3424ad716a048abc71259092b09 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 15 Apr 1998 15:02:22 +0000 Subject: [PATCH] (find-binary-process-coding-system): Remove. (default-process-coding-system): Make it be raw-text-dos if async processes are supported, undecided-dos otherwise. --- lisp/dos-w32.el | 22 ++++------------------ 1 file 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) -- 2.39.2