GNU bug report logs - #25658
26.0.50; ELisp part in a mail isn't encoded properly

Previous Next

Package: emacs;

Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>

Date: Thu, 9 Feb 2017 02:37:02 UTC

Severity: normal

Found in version 26.0.50

Done: Katsumi Yamaoka <yamaoka <at> jpl.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: 25658 <at> debbugs.gnu.org
Subject: bug#25658: 26.0.50; ELisp part in a mail isn't encoded properly
Date: Fri, 10 Feb 2017 09:51:32 +0200
> Date: Fri, 10 Feb 2017 09:56:47 +0900
> From: Katsumi Yamaoka <yamaoka <at> jpl.org>
> 
> On Thu, 09 Feb 2017 11:35:50 +0900, Katsumi Yamaoka wrote:
> > In a message draft, an ELisp part containing non-ASCII letters,
> > like the following, is not encoded properly.
> 
> > <#part type="application/emacs-lisp" disposition=inline>
> > (defun mm-shr (handle)
> >   ...
> > 	 ;; Remove "soft hyphens".
> > 	 (goto-char (point-min))
> > 	 (while (search-forward "­" nil t)
> > 	   (replace-match "" t t))
> > <#/part>
> 
> ;; Note that "­" is a soft hyphen.
> 
> What Gnus wants to do is:
> 
> (quoted-printable-encode-string
>  (encode-coding-string "­" 'iso-8859-1))
>  => "=AD"

Then why doesn't Gnus do exactly that?




This bug report was last modified 8 years and 102 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.