1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-20 12:40:56 -08:00

(print-region-1): Stop using binary-process-{in,out}put,

bind coding-system-for-{read,write} instead.
This commit is contained in:
Eli Zaretskii 1998-04-15 15:17:02 +00:00
parent 08160b08ac
commit 0b45d07bc2

View file

@ -120,10 +120,12 @@ The variable `lpr-page-header-program' specifies the program to use."
;; and it seems to annoying to do for that MIPS system. ;; and it seems to annoying to do for that MIPS system.
(let ((name (concat (buffer-name) " Emacs buffer")) (let ((name (concat (buffer-name) " Emacs buffer"))
(title (concat (buffer-name) " Emacs buffer")) (title (concat (buffer-name) " Emacs buffer"))
;; On MS-DOS systems, make pipes use binary mode if the ;; Make pipes use the same coding system as
;; original file is binary. ;; writing the buffer to a file would.
(binary-process-input buffer-file-type) (coding-system-for-write
(binary-process-output buffer-file-type) (or coding-system-for-write buffer-file-coding-system))
(coding-system-for-read
(or coding-system-for-read buffer-file-coding-system))
(width tab-width) (width tab-width)
switch-string) switch-string)
(save-excursion (save-excursion