Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions package-build.el
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,7 @@ Use a sandbox if `package-build--use-sandbox' is non-nil."
(defun package-build--write-pkg-file (rcp dir)
(pcase-let (((eieio name version summary dependencies) rcp))
(with-temp-file (expand-file-name (format "%s-pkg.el" name) dir)
(set-buffer-file-coding-system 'utf-8)
(insert ";; -*- no-byte-compile: t; lexical-binding: nil -*-\n")
(insert (format "(define-package \"%s\" \"%s\"\n" name version))
(insert (format " %s\n" (prin1-to-string (concat summary "."))))
Expand Down Expand Up @@ -1772,6 +1773,7 @@ If optional PRETTY-PRINT is non-nil, then pretty-print
vc-pkgs))))))
(setq entries (cl-sort entries #'string< :key #'car))
(with-temp-file (or file (expand-file-name "archive-contents"))
(set-buffer-file-coding-system 'utf-8)
(let ((print-level nil)
(print-length nil))
(if pretty-print
Expand All @@ -1785,6 +1787,7 @@ If optional PRETTY-PRINT is non-nil, then pretty-print
(setq vc-pkgs (cl-sort vc-pkgs #'string< :key #'car))
(with-temp-file (expand-file-name "elpa-packages.eld"
(and file (file-name-nondirectory file)))
(set-buffer-file-coding-system 'utf-8)
(let ((print-level nil)
(print-length nil))
(insert "((")
Expand Down