From: Eli Zaretskii Date: Wed, 15 Apr 1998 15:02:22 +0000 (+0000) Subject: (find-binary-process-coding-system): Remove. X-Git-Tag: emacs-20.3~1508 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0b61968932a7d3424ad716a048abc71259092b09;p=emacs.git (find-binary-process-coding-system): Remove. (default-process-coding-system): Make it be raw-text-dos if async processes are supported, undecided-dos otherwise. --- 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)