From 746dd298217b2400c6b82c91261db7dec5fd6d65 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 23 Apr 1998 21:24:29 +0000 Subject: [PATCH] (byte-compile-file): Always read the file in multibyte mode unless the file itself specifies unibyte mode. --- lisp/emacs-lisp/bytecomp.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index d4225ff616e..2aa79037978 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -9,7 +9,7 @@ ;;; This version incorporates changes up to version 2.10 of the ;;; Zawinski-Furuseth compiler. -(defconst byte-compile-version "$Revision: 2.39 $") +(defconst byte-compile-version "$Revision: 2.40 $") ;; This file is part of GNU Emacs. @@ -1282,6 +1282,9 @@ The value is t if there were no errors, nil if errors." (setq input-buffer (get-buffer-create " *Compiler Input*")) (set-buffer input-buffer) (erase-buffer) + ;; Always compile an Emacs Lisp file as multibyte + ;; unless the file itself forces unibyte with -*-coding: raw-text;-*-x + (set-buffer-multibyte t) (insert-file-contents filename) ;; Run hooks including the uncompression hook. ;; If they change the file name, then change it for the output also. -- 2.39.2