]> git.eshelyaron.com Git - emacs.git/commitdiff
(byte-compile-fix-header): Fix the way of checking the existence of
authorKenichi Handa <handa@m17n.org>
Mon, 7 Aug 2000 01:47:27 +0000 (01:47 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 7 Aug 2000 01:47:27 +0000 (01:47 +0000)
any multibyte characters.

lisp/emacs-lisp/bytecomp.el

index 0d183fa9ec0206d19c3420c903854f95cc9c0160..57cbc63a9bf2a88c804af61e23b280421ba9482b 100644 (file)
@@ -1522,10 +1522,8 @@ With argument, insert value in current buffer after the form."
 (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))