From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20231: 25.0.50; package.el mangles non-ascii content in downloaded archive-contents data Date: Sat, 11 Apr 2015 22:48:14 +0300 Message-ID: <83egnqe9a9.fsf@gnu.org> References: <6343E9EC-9E23-4D44-9CD1-82C26DB7CDA3@sanityinc.com> <8292DA72-0898-47B2-A1C1-F7D94A52A437@sanityinc.com> <878udysfn2.fsf@violet.siamics.net> <83mw2eecne.fsf@gnu.org> <874momsbsi.fsf_-_@violet.siamics.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1428781765 32019 80.91.229.3 (11 Apr 2015 19:49:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Apr 2015 19:49:25 +0000 (UTC) Cc: steve@sanityinc.com, 20231@debbugs.gnu.org To: Ivan Shmakov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 11 21:49:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yh1Oy-0001QY-UA for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Apr 2015 21:49:13 +0200 Original-Received: from localhost ([::1]:43668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yh1Oy-0000rP-Dw for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Apr 2015 15:49:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yh1Ot-0000qy-U5 for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2015 15:49:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yh1Oo-000766-Ql for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2015 15:49:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yh1Oo-00075s-NZ for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2015 15:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yh1Oo-0000O1-GF for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2015 15:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Apr 2015 19:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20231-submit@debbugs.gnu.org id=B20231.14287816991429 (code B ref 20231); Sat, 11 Apr 2015 19:49:02 +0000 Original-Received: (at 20231) by debbugs.gnu.org; 11 Apr 2015 19:48:19 +0000 Original-Received: from localhost ([127.0.0.1]:53439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yh1O6-0000Mz-Ku for submit@debbugs.gnu.org; Sat, 11 Apr 2015 15:48:18 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:34905) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yh1O4-0000Mk-I7 for 20231@debbugs.gnu.org; Sat, 11 Apr 2015 15:48:17 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NMN00000QIRJH00@mtaout24.012.net.il> for 20231@debbugs.gnu.org; Sat, 11 Apr 2015 22:39:35 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMN00I3UQLZ0B70@mtaout24.012.net.il>; Sat, 11 Apr 2015 22:39:35 +0300 (IDT) In-reply-to: <874momsbsi.fsf_-_@violet.siamics.net> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101441 Archived-At: > From: Ivan Shmakov > Date: Sat, 11 Apr 2015 19:30:21 +0000 > > >>>>> Eli Zaretskii writes: > > […] > > >> As insert-file-contents may imply a whole lot of additional > >> processing beyond decoding UTF-8, I’d rather use an explicit > >> decode-coding-region here > > > Can you explain why? What additional processing can get in the way? > > One of the examples I can readily think of is enriched-decode, > which will automatically be called should there be a > ‘Content-Type: text/enriched’ line near the top of the file > being read (per format-alist.) Yes, but is that kind of processing harmful for the case at point? Also, are we sure we will never get a compressed file, for example, or some other binary file? In those cases, decoding is not TRT. > I have no example at hand of how such processing may be > triggered in practice, but avoiding it altogether seems to me > like a saner approach. It is also slower. Again, I have no idea if speed matters in this case.