# HG changeset patch # User Kenichi Handa # Date 856958380 0 # Node ID 8f8c3d05b15823d0700c469bc6f1c84abb484158 # Parent d436e2536685fcf28cf55dc355db8390f3a45ecd (byte-compile-file): Bind coding-system-for-write instead of coding-system-for-read to 'no-conversion to disbale code convertion by write-region. diff -r d436e2536685 -r 8f8c3d05b158 lisp/emacs-lisp/bytecomp.el --- a/lisp/emacs-lisp/bytecomp.el Wed Feb 26 11:53:15 1997 +0000 +++ b/lisp/emacs-lisp/bytecomp.el Wed Feb 26 11:59:40 1997 +0000 @@ -10,7 +10,7 @@ ;;; This version incorporates changes up to version 2.10 of the ;;; Zawinski-Furuseth compiler. -(defconst byte-compile-version "$Revision: 2.25 $") +(defconst byte-compile-version "$Revision: 2.26 $") ;; This file is part of GNU Emacs. @@ -1269,7 +1269,7 @@ (let ((vms-stmlf-recfm t)) (if (file-writable-p target-file) ;; We must disable any code conversion here. - (let ((coding-system-for-read 'no-conversion)) + (let ((coding-system-for-write 'no-conversion)) (if (or (eq system-type 'ms-dos) (eq system-type 'windows-nt)) (setq buffer-file-type t)) (write-region 1 (point-max) target-file))