From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Two errors in 27.* with Windows Date: Fri, 27 Mar 2020 10:08:07 +0300 Message-ID: <83tv2a8eco.fsf@gnu.org> References: <86369vt7ce.fsf@csic.es> <834kub9c93.fsf@gnu.org> <86h7yb9bzi.fsf@csic.es> <83zhc299xq.fsf@gnu.org> <86r1xe6a63.fsf@csic.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="2520"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Juan =?utf-8?Q?Jos=C3=A9_Garc=C3=ADa-Ripoll?= , Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 27 08:09:05 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jHj72-0000Zs-1o for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Mar 2020 08:09:04 +0100 Original-Received: from localhost ([::1]:37856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHj71-0006vM-4M for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Mar 2020 03:09:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43327) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHj68-0006MN-0z for emacs-devel@gnu.org; Fri, 27 Mar 2020 03:08:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jHj67-0003pE-La; Fri, 27 Mar 2020 03:08:07 -0400 Original-Received: from [176.228.60.248] (port=3848 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jHj66-0005Sm-CS; Fri, 27 Mar 2020 03:08:07 -0400 In-Reply-To: <86r1xe6a63.fsf@csic.es> (juanjose.garciaripoll@gmail.com) 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245831 Archived-At: > From: Juan José García-Ripoll > > Cc: Juan José García-Ripoll > , emacs-devel@gnu.org > Date: Thu, 26 Mar 2020 23:09:08 +0100 > > > . what do you mean by "binary buffer" (or "text buffer")? > > I have no way to debug this problem clearly. Obviously the problem is in > call-process producing output in a buffer and that being parsed in two > different ways: outside Gnus, it is parsed in a way that does not ignore > ^M characters; inside Gnus it sometimes happens and sometimes does not. > > > . I didn't say that gpg's output is the problem, I asked whether > > it's human-readable text or byte stream in this case. I > > understand it's text (the gpg version number), in which case I > > don't understand why the code sets coding-system-for-read to > > 'binary' -- it sounds like a mistake. Can you show the place > > where this is done? > > No. That is what I was asking in my earlier email. I do not know how to > trace where this happens. The most I have managed is to set an "advice" > function that interferes CALL-PROCESS and output properties of the > buffer that is current when it is invoked, but I have no idea how to > find which part of the code selects those values. Man, this code base is huge. Lars (or anyone else of the Gnus developers), can you help? We are looking for the place that calls (perhaps indirectly) call-process to run gpg in this scenario, and in particularly where does that code set coding-system-for-read to 'binary'. Juan, can you please describe the scenario (the commands you issue and any relevant customizations you have) that causes this in detail? Also, if this doesn't happen in "emacs -Q", please show any relevant customizations in your init files, especially the ones that customize the default coding-systems. Thanks.