From: Lars Ingebrigtsen <larsi@gnus.org>
To: David Kastrup <dak@gnu.org>
Cc: 13808@debbugs.gnu.org
Subject: bug#13808: Gnus gratuiously messes with the encoding of attachments
Date: Wed, 25 Jan 2017 16:58:05 +0100 [thread overview]
Message-ID: <87a8af3zea.fsf@gnus.org> (raw)
In-Reply-To: <87fuk73zpr.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 25 Jan 2017 16:51:12 +0100")
Lars Ingebrigtsen <larsi@gnus.org> 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
next parent reply other threads:[~2017-01-25 15:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87ppzp2t1n.fsf@fencepost.gnu.org>
[not found] ` <87zjtzwu36.fsf@building.gnus.org>
[not found] ` <871u7blkuw.fsf@fencepost.gnu.org>
[not found] ` <87r4fbvegl.fsf@building.gnus.org>
[not found] ` <87wqp3k54g.fsf@fencepost.gnu.org>
[not found] ` <m3pputgq1i.fsf@stories.gnus.org>
[not found] ` <87zjtxi1f3.fsf@fencepost.gnu.org>
[not found] ` <87ppn86hyj.fsf@building.gnus.org>
[not found] ` <87d2j86hkm.fsf@building.gnus.org>
[not found] ` <87k3dg4pje.fsf@fencepost.gnu.org>
[not found] ` <87fuk73zpr.fsf@gnus.org>
2017-01-25 15:58 ` Lars Ingebrigtsen [this message]
2017-01-25 16:26 ` bug#13808: Gnus gratuiously messes with the encoding of attachments Lars Ingebrigtsen
2017-01-25 16:56 ` David Kastrup
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a8af3zea.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=13808@debbugs.gnu.org \
--cc=dak@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.