From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Bad RFC 2047 decoding in Rmail Date: Tue, 07 Jan 2020 17:42:31 +0200 Message-ID: <83v9pncly0.fsf@gnu.org> References: <87imlxlrrv.5.fsf@jidanni.org> <87mub85ri0.fsf@web.de> <87h81f3our.5.fsf@jidanni.org> <87v9pv28qu.fsf@web.de> <87d0c33mdx.5.fsf@jidanni.org> <87o8vnq1ph.fsf@web.de> <875zhv3jyr.5.fsf@jidanni.org> <87eewjydyg.fsf@web.de> <87sgkw60fi.5.fsf@jidanni.org> <8736cwrub9.5.fsf@jidanni.org> <87y2uoqds6.5.fsf@jidanni.org> <83lfqlgbrk.fsf@gnu.org> <87sgktkbqg.8.fsf@jidanni.org> <83zhf1dztn.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="244333"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 07 16:56:39 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iorDg-000yWT-6I for ged-emacs-devel@m.gmane.org; Tue, 07 Jan 2020 16:56:36 +0100 Original-Received: from localhost ([::1]:52098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iorDe-0001VQ-V7 for ged-emacs-devel@m.gmane.org; Tue, 07 Jan 2020 10:56:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52099) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ior02-0003nc-5J for emacs-devel@gnu.org; Tue, 07 Jan 2020 10:42:31 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ior01-000489-TY for emacs-devel@gnu.org; Tue, 07 Jan 2020 10:42:29 -0500 Original-Received: from [176.228.60.248] (port=4038 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ioqzu-0000d5-5H; Tue, 07 Jan 2020 10:42:22 -0500 In-reply-to: (message from Richard Stallman on Mon, 06 Jan 2020 18:08:36 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:244067 Archived-At: > From: Richard Stallman > Cc: michael_heerdegen@web.de, pieter-l@vanoostrum.org, > jidanni@jidanni.org, 38818@debbugs.gnu.org > Date: Mon, 06 Jan 2020 18:08:36 -0500 > > I debugged this some, and found that rfc2047-decode-encoded-words > is decoding header fields such as =?iso-8859-1?Q?B=C3=A9raud?= > incorrectly, using a peculiar choice of coding system, windows-1252. > That seems to come from mm-charset-to-coding-system. > > Does anyone see how that could happen? It has to be something at least a bit specific to your environment or customizations, because I use Rmail in the exact same way, and these problems never happen to me, including when replying to jidanni. Can you try this in "emacs -Q"? It would help if you did that with the email message where the problem happened, which is this: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=38818#80 You can download that message in mbox format from this URL: https://debbugs.gnu.org/cgi/bugreport.cgi?msg=80;bug=38818;mbox=yes If you respond to this message, and the problem happens in "emacs -Q" as well, then please either step through rfc2047-decode-encoded-words and tell where does it make the bad decoding decision, or tell me you values of locale-coding-system and buffer-file-coding-system, and I will try to reproduce on my system. If the problem doesn't happen in "emacs -Q", then some of your customizations directly or indirectly cause rfc2047-decode-encoded-words to fail, and so please try to find out which of the customizations do that.