diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index a4289b6800d..fdb094450c3 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -292,7 +292,9 @@ autoloads go somewhere else.") ;; the local variables section if it's there. (if existing-buffer (set-buffer existing-buffer)) - (set-buffer (find-file-noselect generated-autoload-file)) + ;; We must read/write the file without any code conversion. + (let ((coding-system-for-read 'no-conversion)) + (set-buffer (find-file-noselect generated-autoload-file))) (save-excursion (save-restriction (widen)