# HG changeset patch # User Kenichi Handa # Date 965612847 0 # Node ID 277e6060b3764b8a20c0462c22954119a11f2573 # Parent 0d3b3df25bcb545b45ef2c01026dcc2c700ad37e (byte-compile-fix-header): Fix the way of checking the existence of any multibyte characters. diff -r 0d3b3df25bcb -r 277e6060b376 lisp/emacs-lisp/bytecomp.el --- a/lisp/emacs-lisp/bytecomp.el Mon Aug 07 01:46:03 2000 +0000 +++ b/lisp/emacs-lisp/bytecomp.el Mon Aug 07 01:47:27 2000 +0000 @@ -1522,10 +1522,8 @@ (defun byte-compile-fix-header (filename inbuffer outbuffer) (save-excursion (set-buffer outbuffer) - (goto-char (point-min)) ;; See if the buffer has any multibyte characters. - (skip-chars-forward "\0-\377") - (when (not (eobp)) + (when (< (point-max) (position-bytes (point-max))) (when (byte-compile-version-cond byte-compile-compatibility) (error "Version-18 compatibility not valid with multibyte characters")) (goto-char (point-min))