# HG changeset patch # User Gerd Moellmann # Date 949504299 0 # Node ID 65b514b0ab72fce199875508de28f0f5d37e47c0 # Parent 2f7978218574d427a3853ec939967844a2c35827 (ange-ftp-write-region): Handle case that succeeding process operation sets a different coding system. diff -r 2f7978218574 -r 65b514b0ab72 lisp/ange-ftp.el --- a/lisp/ange-ftp.el Wed Feb 02 15:10:35 2000 +0000 +++ b/lisp/ange-ftp.el Wed Feb 02 15:11:39 2000 +0000 @@ -3185,6 +3185,7 @@ (memq (ange-ftp-host-type host user) '(unix dumb-unix)))) (abbr (ange-ftp-abbreviate-filename filename)) + (coding-system-used last-coding-system-used) size) (unwind-protect (progn @@ -3207,6 +3208,7 @@ size (nth 1 (ange-ftp-real-insert-file-contents temp visit beg end replace)) + coding-system-used last-coding-system-used ;; override autodetection of buffer file type ;; to ensure buffer is saved in DOS format buffer-file-type binary) @@ -3226,6 +3228,7 @@ (progn (set-visited-file-modtime '(0 0)) (setq buffer-file-name filename))) + (setq last-coding-system-used coding-system-used) (list filename size)) (signal 'file-error (list