[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#44307: 27.1; UTF-8 parts transferred as 8bit in multipart messages f
From: |
Lars Ingebrigtsen |
Subject: |
bug#44307: 27.1; UTF-8 parts transferred as 8bit in multipart messages fail to decode |
Date: |
Thu, 07 Jan 2021 17:10:22 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Alexandre Duret-Lutz <adl@lrde.epita.fr> writes:
> Question: shouldn't mm-with-part always leave the buffer in unibyte
> mode? The comment at the beginning of the macro seems to suggest that,
> but the new "if" does not call (mm-disable-multibyte) after inserting
> the part.
Hm, true.
> - (insert-buffer-substring (mm-handle-buffer handle))
> + (progn
> + (insert-buffer-substring (mm-handle-buffer handle))
> + (mm-disable-multibyte))
No, disabling multibyte in a non-empty buffer is always the wrong thing
to do -- using encode-coding-region is probably the thing to do here.
> ;; Do the decoding.
> (mm-disable-multibyte)
> (insert-buffer-substring (mm-handle-buffer handle))
>
> this seems to fix text/plain utf-8 parts as well, however the
> rendering of window-1252 parts is now broken...
Yeah, that's to be expected.
Could you forward a message with a windows-1252 part, too (like the
previous one), and I can add it to the test cases.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#44307: 27.1; UTF-8 parts transferred as 8bit in multipart messages fail to decode, Alexandre Duret-Lutz, 2021/01/02
- bug#44307: 27.1; UTF-8 parts transferred as 8bit in multipart messages fail to decode, Alexandre Duret-Lutz, 2021/01/04
- bug#44307: 27.1; UTF-8 parts transferred as 8bit in multipart messages fail to decode, Lars Ingebrigtsen, 2021/01/05
- bug#44307: 27.1; UTF-8 parts transferred as 8bit in multipart messages fail to decode, Lars Ingebrigtsen, 2021/01/10
- bug#44307: 27.1; UTF-8 parts transferred as 8bit in multipart messages fail to decode, Alexandre Duret-Lutz, 2021/01/10
- bug#44307: 27.1; UTF-8 parts transferred as 8bit in multipart messages fail to decode, Lars Ingebrigtsen, 2021/01/10
- bug#44307: 27.1; UTF-8 parts transferred as 8bit in multipart messages fail to decode, Alexandre Duret-Lutz, 2021/01/10
- bug#44307: 27.1; UTF-8 parts transferred as 8bit in multipart messages fail to decode, Alexandre Duret-Lutz, 2021/01/10
- bug#44307: 27.1; UTF-8 parts transferred as 8bit in multipart messages fail to decode, Lars Ingebrigtsen, 2021/01/11