From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: master d1c9310: DOn't use string-as-unibyte in Gnus Date: Wed, 01 Feb 2017 11:24:43 +0100 Message-ID: <87a8a6w6ms.fsf@linux-m68k.org> References: <20170131165808.28198.10570@vcs.savannah.gnu.org> <20170131165808.9F18722015F@vcs.savannah.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485944717 12289 195.159.176.226 (1 Feb 2017 10:25:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Feb 2017 10:25:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (gnu/linux) Cc: Lars Ingebrigtsen , emacs-devel@gnu.org To: Katsumi Yamaoka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 01 11:25:08 2017 Return-path: Envelope-to: ged-emacs-devel@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 1cYs68-0002nC-6v for ged-emacs-devel@m.gmane.org; Wed, 01 Feb 2017 11:25:08 +0100 Original-Received: from localhost ([::1]:49772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYs6D-00041t-Nz for ged-emacs-devel@m.gmane.org; Wed, 01 Feb 2017 05:25:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYs63-00040N-N8 for emacs-devel@gnu.org; Wed, 01 Feb 2017 05:25:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYs5z-0002A9-Kk for emacs-devel@gnu.org; Wed, 01 Feb 2017 05:25:03 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:51849) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cYs5z-00029b-Ee for emacs-devel@gnu.org; Wed, 01 Feb 2017 05:24:59 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3vCzlX2Wbyz3hjsy; Wed, 1 Feb 2017 11:24:56 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3vCzlX1JbKzvkS3; Wed, 1 Feb 2017 11:24:56 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id LCcXGRPpoLHu; Wed, 1 Feb 2017 11:24:49 +0100 (CET) X-Auth-Info: D92ysY/00ERCw5wSpTzVwHd+UvS6ZKQuXGnwKlVbZ7OJqjTCNluFv7YfzRCHhjUy Original-Received: from igel.home (ppp-88-217-11-115.dynamic.mnet-online.de [88.217.11.115]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 1 Feb 2017 11:24:49 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 4A1492C51BB; Wed, 1 Feb 2017 11:24:43 +0100 (CET) X-Yow: YOW!! Everybody out of the GENETIC POOL! In-Reply-To: (Katsumi Yamaoka's message of "Wed, 01 Feb 2017 19:00:51 +0900") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 212.18.0.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:211834 Archived-At: On Feb 01 2017, Katsumi Yamaoka wrote: > Hi Lars, > > On Tue, 31 Jan 2017 16:58:08 +0000, Lars Ingebrigtsen wrote: >> branch: master >> commit d1c931009004aef847105b7bac6b6ffafd985b82 >> Author: Lars Ingebrigtsen >> Commit: Lars Ingebrigtsen > >> DOn't use string-as-unibyte in Gnus > [...] >> * lisp/gnus/mml.el (mml-generate-mime-1): Ditto. > [...] >> --- a/lisp/gnus/mml.el >> +++ b/lisp/gnus/mml.el >> @@ -696,9 +696,10 @@ be \"related\" or \"alternate\"." >> (set-buffer-multibyte nil) >> (cond >> ((cdr (assq 'buffer cont)) >> - (insert (string-as-unibyte >> + (insert (encode-coding-string >> (with-current-buffer (cdr (assq 'buffer cont)) >> - (buffer-string))))) >> + (buffer-string)) >> + 'utf-8))) Shouldn't that be raw-text? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."