From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#13808: Gnus gratuiously messes with the encoding of attachments Date: Wed, 25 Jan 2017 16:58:05 +0100 Message-ID: <87a8af3zea.fsf@gnus.org> References: <87ppzp2t1n.fsf@fencepost.gnu.org> <87zjtzwu36.fsf@building.gnus.org> <871u7blkuw.fsf@fencepost.gnu.org> <87r4fbvegl.fsf@building.gnus.org> <87wqp3k54g.fsf@fencepost.gnu.org> <87zjtxi1f3.fsf@fencepost.gnu.org> <87ppn86hyj.fsf@building.gnus.org> <87d2j86hkm.fsf@building.gnus.org> <87k3dg4pje.fsf@fencepost.gnu.org> <87fuk73zpr.fsf@gnus.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485360060 9297 195.159.176.226 (25 Jan 2017 16:01:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2017 16:01:00 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 13808@debbugs.gnu.org To: David Kastrup Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 25 17:00:46 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWPzv-0000e7-6x for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jan 2017 17:00:35 +0100 Original-Received: from localhost ([::1]:60816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWQ00-0003QE-IE for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jan 2017 11:00:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWPyU-0002aW-Iq for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2017 10:59:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWPyQ-0006PT-EX for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2017 10:59:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44765) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWPyQ-0006PM-BD for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2017 10:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cWPyQ-000183-25; Wed, 25 Jan 2017 10:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 25 Jan 2017 15:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13808 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 13808-submit@debbugs.gnu.org id=B13808.14853599064294 (code B ref 13808); Wed, 25 Jan 2017 15:59:02 +0000 Original-Received: (at 13808) by debbugs.gnu.org; 25 Jan 2017 15:58:26 +0000 Original-Received: from localhost ([127.0.0.1]:42963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWPxm-000179-7J for submit@debbugs.gnu.org; Wed, 25 Jan 2017 10:58:25 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:44310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWPxg-00016x-FH for 13808@debbugs.gnu.org; Wed, 25 Jan 2017 10:58:20 -0500 Original-Received: from 2.150.50.220.tmi.telenormobil.no ([2.150.50.220] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWPxb-0002VQ-Kh; Wed, 25 Jan 2017 16:58:15 +0100 In-Reply-To: <87fuk73zpr.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 25 Jan 2017 16:51:12 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:128451 Archived-At: Lars Ingebrigtsen writes: > The mml encoding code is headache-inducing, probably because it was > written to support non-Mule and XEmacs and modern Emacs at the same > time. So you have stuff like: > > (defun mm-find-charset-region (b e) > "Return a list of Emacs charsets in the region B to E." > (cond > ((mm-multibyte-p) > > [...] > > (t > ;; We are in a unibyte buffer, so we futz around a bit. > > [...] > > (car (last (assq mail-parse-charset > mm-mime-mule-charset-alist))))) > (list 'ascii (or charset 'latin-iso8859-1))))))))) > > which is part of what's biting us here. > > I wonder whether the best solution here is to just rewrite the mml code > completely. There's so much... magic in the various code paths. And I think the answer is... yes. I'll start rewriting. Shouldn't be ... that much code, should it? :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no