From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: bug#40248: 27.0.90; Failure open .authinfo.gpg from Gnus Date: Tue, 31 Mar 2020 12:31:04 +0200 Message-ID: <877dz0rf2v.fsf@igel.home> References: <86bloi1zrj.fsf@csic.es> <83lfnm8b30.fsf@gnu.org> <83ftdt9b1d.fsf@gnu.org> <86sght3h1s.fsf@csic.es> <834ku89anf.fsf@gnu.org> <87a740ub2r.fsf@gnus.org> <83tv287s9j.fsf@gnu.org> <874ku7txho.fsf@gnus.org> <83imin5l0w.fsf@gnu.org> <87blocrgtb.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="3580"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux) Cc: Eli Zaretskii , Lars Ingebrigtsen , emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 31 12:32:16 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 1jJEBr-0000qS-LM for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Mar 2020 12:32:15 +0200 Original-Received: from localhost ([::1]:35528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJEBq-0003cp-Nm for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Mar 2020 06:32:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49971) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJEAr-00021S-T3 for emacs-devel@gnu.org; Tue, 31 Mar 2020 06:31:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJEAq-00016N-G6 for emacs-devel@gnu.org; Tue, 31 Mar 2020 06:31:13 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:44753) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jJEAm-00013o-KF; Tue, 31 Mar 2020 06:31:09 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 48s5G225MKz1rvSD; Tue, 31 Mar 2020 12:31:06 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 48s5G21d4Gz1r0cL; Tue, 31 Mar 2020 12:31:06 +0200 (CEST) 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.70]) (amavisd-new, port 10024) with ESMTP id tIxiR_vVF-Ng; Tue, 31 Mar 2020 12:31:05 +0200 (CEST) X-Auth-Info: yyQqCDy9nXXu3oAyAECWMCNobCM+a9AwffD3az56UruV8RNL8y7Ou3lXyoibzoyl Original-Received: from igel.home (ppp-46-244-170-213.dynamic.mnet-online.de [46.244.170.213]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 31 Mar 2020 12:31:05 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id F2CDA2C0AF9; Tue, 31 Mar 2020 12:31:04 +0200 (CEST) X-Yow: LIFE is a never-ending INFORMERCIAL! In-Reply-To: (Robert Pluim's message of "Tue, 31 Mar 2020 12:16:18 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.18.0.10 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:246084 Archived-At: On M=C3=A4r 31 2020, Robert Pluim wrote: > My reading of set_network_socket_coding_system is that having a plist > in make-network-process with :coding nil overrides a non-nil > coding-system-for-{read-write}, which I don=CA=BCt think we want. You are right, make-network-process and make-serial-process handle that differently than make-process and make-pipe-process. I think this is a bug, they should all handle :coding nil the same (same as absence). But in any case, your patch can be simplyfied: --- a/lisp/net/network-stream.el +++ b/lisp/net/network-stream.el @@ -246,10 +246,12 @@ gnutls-boot (as returned by `gnutls-boot-parameters= ')." =20 (defun network-stream-open-plain (name buffer host service parameters) (let ((start (with-current-buffer buffer (point))) - (stream (make-network-process :name name :buffer buffer - :host (puny-encode-domain host) - :service service - :nowait (plist-get parameters :nowait)))) + (stream (apply #'make-network-process :name name :buffer buffer + :host (puny-encode-domain host) + :service service + :nowait (plist-get parameters :nowait) + (if (plist-member parameters :coding) + (list :coding (plist-get parameters :coding))= )))) (when (plist-get parameters :warn-unless-encrypted) (setq stream (nsm-verify-connection stream host service nil t))) (list stream Andreas. --=20 Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint =3D 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC= 1 "And now for something completely different."