# HG changeset patch # User Andrew Innes # Date 922402176 0 # Node ID 06762ce530be36dd2eb0f5ec4f30111b5511064e # Parent 2db3b19a94bb4de72eada41c918725114a55a743 (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. diff -r 2db3b19a94bb -r 06762ce530be lisp/w32-fns.el --- a/lisp/w32-fns.el Wed Mar 24 14:25:58 1999 +0000 +++ b/lisp/w32-fns.el Thu Mar 25 22:49:36 1999 +0000 @@ -137,6 +137,26 @@ (add-hook 'after-init-hook 'w32-check-shell-configuration) +;;; Override setting chosen at startup. +(defun set-default-process-coding-system () + ;; Most programs on Windows will accept Unix line endings on input + ;; (and some programs ported from Unix require it) but most will + ;; produce DOS line endings on output. + (setq default-process-coding-system + (if default-enable-multibyte-characters + '(undecided-dos . undecided-unix) + '(raw-text-dos . raw-text-unix))) + (or (w32-using-nt) + ;; On Windows 9x, make cmdproxy default to using DOS line endings + ;; for input, because command.com requires this. + (setq process-coding-system-alist + `(("[cC][mM][dD][pP][rR][oO][xX][yY]" + . ,(if default-enable-multibyte-characters + '(undecided-dos . undecided-dos) + '(raw-text-dos . raw-text-dos))))))) + +(add-hook 'before-init-hook 'set-default-process-coding-system) + ;;; Basic support functions for managing Emacs' locale setting