1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00

package.el: Fix bug#53529

* lisp/emacs-lisp/package.el (package-autoload-ensure-default-file):
Enforce Unix EOLs.
This commit is contained in:
Stefan Monnier 2022-01-29 17:50:02 -05:00
parent 96533c18b7
commit 35cd9197fc

View file

@ -1005,7 +1005,8 @@ untar into a directory named DIR; otherwise, signal an error."
"Make sure that the autoload file FILE exists and if not create it."
(unless (file-exists-p file)
(require 'autoload)
(write-region (autoload-rubric file "package" nil) nil file nil 'silent))
(let ((coding-system-for-write 'utf-8-emacs-unix))
(write-region (autoload-rubric file "package" nil) nil file nil 'silent)))
file)
(defvar autoload-timestamps)