emacs-devel
[Top][All Lists]
Advanced

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

Re: 23.0.60; rmail initial misdecoding of iso-8859-15 mail (quoted-print


From: David Golden
Subject: Re: 23.0.60; rmail initial misdecoding of iso-8859-15 mail (quoted-printable at least)
Date: Wed, 23 Jan 2008 02:38:10 +0000
User-agent: KMail/1.9.7

[apologies for doubling up in that last message; somehow managed
to send an old version of the message body as an additional attachment]

I have made some progress on debugging this, I think: 

rmail-convert-to-babyl-format calls  mail-unquote-printable-region [1] 
with arg "unibyte" set to t - supposed to cause the insertion of the 
decoded characters as unibyte, probably mostly for rmail's 
post-unquoting decoding as it happens (see docstring in the 
mail-unquote-printable-region function).  However, the 
mail-unquote-printable-region function apparently thinks insert-char 
will do this for it [2].  Only, these days, it apparently doesn't, it 
only inserts a unibyte char if buffer is in unibyte mode...

insert-byte exists, so immediate fix would be to change insert-char to 
insert-byte in [2] ?



[1] line 1990 of rmail.el

...
(if quoted-printable-header-field-end
                       (save-excursion
                         (unless
===>                         (mail-unquote-printable-region header-end (point) 
nil t t)
                           (message "Malformed MIME quoted-printable message")
...


[2] line 147 of mail-utils.el
...
                     (if unibyte
                         (progn
                           (replace-match "")
===>                       ;; insert-char will insert this as unibyte,
                           (insert-char char 1))
                       (replace-match (make-string 1 char) t t))))
....




reply via email to

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