Subject: Re: bug#48137: 27.2; `package-install-file' fails when loading a package file with DOS line endings

From: Stefan Monnier <[email-masked]>
Date: Thu, 06 May 2021 09:27:38 -0400

>> My idea was to read the file literally, without decoding, then parse
>> the package headers from that.
> I suppose you mean something along the other option below?

That's not sufficient, because if we don't decode the file before we
call `package-buffer-info` (from `package-install-from-buffer`), then
the <foo>-pkg.el file will have incorrect content (e.g. the non-ASCII
chars in the description of the package, will be later incorrectly
displayed in `list-packages`).

        Stefan