From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#48137: 27.2; `package-install-file' fails when loading a package file with DOS line endings Date: Tue, 04 May 2021 19:51:50 +0300 Message-ID: <83fsz24f2x.fsf@gnu.org> References: <834kfmabvs.fsf@gnu.org> <83tunj651i.fsf@gnu.org> <83lf8u68bu.fsf@gnu.org> <83mtta4gtf.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16930"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ioannis.kappas@gmail.com, 48137@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 04 18:53:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ldyIH-0004Fr-TD for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 May 2021 18:53:09 +0200 Original-Received: from localhost ([::1]:45182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldyIG-0003kS-Ur for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 May 2021 12:53:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldyIA-0003k2-76 for bug-gnu-emacs@gnu.org; Tue, 04 May 2021 12:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42735) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldyIA-0005p2-03 for bug-gnu-emacs@gnu.org; Tue, 04 May 2021 12:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldyI9-0003Ry-Vd for bug-gnu-emacs@gnu.org; Tue, 04 May 2021 12:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 May 2021 16:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48137 X-GNU-PR-Package: emacs Original-Received: via spool by 48137-submit@debbugs.gnu.org id=B48137.162014713513245 (code B ref 48137); Tue, 04 May 2021 16:53:01 +0000 Original-Received: (at 48137) by debbugs.gnu.org; 4 May 2021 16:52:15 +0000 Original-Received: from localhost ([127.0.0.1]:54279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldyHP-0003RZ-4Q for submit@debbugs.gnu.org; Tue, 04 May 2021 12:52:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldyHN-0003RT-J0 for 48137@debbugs.gnu.org; Tue, 04 May 2021 12:52:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55828) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldyHH-0005Og-TD; Tue, 04 May 2021 12:52:07 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3357 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ldyHC-0006sb-OG; Tue, 04 May 2021 12:52:07 -0400 In-Reply-To: (message from Stefan Monnier on Tue, 04 May 2021 12:27:37 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:205633 Archived-At: > From: Stefan Monnier > Cc: ioannis.kappas@gmail.com, 48137@debbugs.gnu.org > Date: Tue, 04 May 2021 12:27:37 -0400 > > >> I agree that in principle it would be better to copy the file by copying > >> its bytes than by `insert-file-contents + write-region`. > > Why only "in principle"? what prevents us from actually doing that? > > Someone willing to take the time and rework the code accordingly? I thought that's Ioannis?