From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27141: 26.0.50; mml-generate-mime-1 broken Date: Sat, 02 Sep 2017 17:05:05 +0300 Message-ID: <83ziadxkku.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1504361201 29096 195.159.176.226 (2 Sep 2017 14:06:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 2 Sep 2017 14:06:41 +0000 (UTC) Cc: 27141@debbugs.gnu.org, larsi@gnus.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 02 16:06:26 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1do93q-00068h-5R for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Sep 2017 16:06:10 +0200 Original-Received: from localhost ([::1]:51053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1do93x-0001uv-6e for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Sep 2017 10:06:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1do93n-0001sf-1b for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 10:06:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1do93i-0005sf-94 for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 10:06:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34828) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1do93i-0005sN-5D for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 10:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1do93h-0003Ch-UF for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 10:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Sep 2017 14:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27141 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27141-submit@debbugs.gnu.org id=B27141.150436112712272 (code B ref 27141); Sat, 02 Sep 2017 14:06:01 +0000 Original-Received: (at 27141) by debbugs.gnu.org; 2 Sep 2017 14:05:27 +0000 Original-Received: from localhost ([127.0.0.1]:43509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1do938-0003Bs-O2 for submit@debbugs.gnu.org; Sat, 02 Sep 2017 10:05:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1do937-0003Bd-4c for 27141@debbugs.gnu.org; Sat, 02 Sep 2017 10:05:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1do92x-0005Dk-17 for 27141@debbugs.gnu.org; Sat, 02 Sep 2017 10:05:19 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1do92w-0005DX-Th; Sat, 02 Sep 2017 10:05:14 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2253 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1do92w-0001aE-9l; Sat, 02 Sep 2017 10:05:14 -0400 In-reply-to: (message from Katsumi Yamaoka on Thu, 01 Jun 2017 17:32:53 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136495 Archived-At: > Date: Thu, 01 Jun 2017 17:32:53 +0900 > From: Katsumi Yamaoka > Cc: 27141@debbugs.gnu.org > > On Thu, 01 Jun 2017 09:17:06 +0200, Lars Ingebrigtsen wrote: > >> (with-temp-buffer > >> (set-buffer-multibyte nil) > >> (insert > >> (with-temp-buffer ;; <- unibyte > > > Hm... why is this buffer unibyte here? > > Oops, for years I misunderstood that the multibyteness of a newly > created buffer defaults to that of the current buffer. But it's > wrong! > > (with-temp-buffer > (set-buffer-multibyte nil) > (with-temp-buffer > enable-multibyte-characters)) > => t > > > And if it is, won't (set-buffer-multibyte t) fix that? > > No, it doesn't help. As I wrote the first post, > > > ・Insert the original mail (decoded) into a unibyte buffer > ^^^^^^^ multibyte > > (that with-temp-buffer of mml.el-[line:619] generates). > > ・Detect the charset of the contents. > > ・Encode the contents by that detected charset. > > ・Insert the encoded contsnts into the other unibyte buffer > > (that with-temp-buffer of mml.el-[line:612] generates). > > ・Run `mml-to-mime' that encodes the header of the original mail > > using `mail-encode-encoded-word-buffer' (an alias to > > `rfc2047-encode-message-header'). > > > rfc2047's encoder expects human readable text, however, there > > are encoded ones as described above. Ping! Any news on this issue? It currently indicated as blocking the release of Emacs 26.1, so can we please expedite its resolution? Thanks.