bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13808: Gnus gratuiously messes with the encoding of attachments


From: Lars Ingebrigtsen
Subject: bug#13808: Gnus gratuiously messes with the encoding of attachments
Date: Wed, 25 Jan 2017 16:58:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]