]> git.eshelyaron.com Git - emacs.git/commitdiff
(set-default-process-coding-system): Use dos line ends
authorJason Rumney <jasonr@gnu.org>
Sun, 15 Jul 2007 00:59:43 +0000 (00:59 +0000)
committerJason Rumney <jasonr@gnu.org>
Sun, 15 Jul 2007 00:59:43 +0000 (00:59 +0000)
for input to cmdproxy on all versions of Windows.
Use dos line ends for input to plink.

lisp/w32-fns.el

index 26aafeb27fc4df4c19aab615fdbb84449e228bba..fc5afd7666442fff1cba0cad1ecc7553074b9a54 100644 (file)
@@ -149,14 +149,19 @@ You should set this to t when using a non-system shell.\n\n"))))
        (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)))))))
+  ;; Make cmdproxy default to using DOS line endings for input,
+  ;; because some Windows programs (including command.com) require it.
+  (add-to-list '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))))
+  ;; plink needs DOS input when entering the password.
+  (add-to-list 'process-coding-system-alist
+              `("[pP][lL][iI][nN][kK]"
+                . ,(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)