From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juan =?utf-8?Q?Jos=C3=A9_Garc=C3=ADa-Ripoll?= Newsgroups: gmane.emacs.devel Subject: Two errors in 27.* with Windows Date: Thu, 26 Mar 2020 17:21:37 +0100 Message-ID: <86369vt7ce.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="87305"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (windows-nt) To: emacs-devel@gnu.org Cancel-Lock: sha1:yPBBw5eZdf7oahVajfu0KTB4YvI= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 26 17:22:18 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 1jHVGs-000McB-3A for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Mar 2020 17:22:18 +0100 Original-Received: from localhost ([::1]:56334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHVGq-0007s2-QX for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Mar 2020 12:22:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60490) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHVGM-0007IW-95 for emacs-devel@gnu.org; Thu, 26 Mar 2020 12:21:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHVGL-0006Jw-0o for emacs-devel@gnu.org; Thu, 26 Mar 2020 12:21:46 -0400 Original-Received: from ciao.gmane.io ([159.69.161.202]:34926) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jHVGK-0006Jn-RM for emacs-devel@gnu.org; Thu, 26 Mar 2020 12:21:44 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jHVGJ-000LwP-B8 for emacs-devel@gnu.org; Thu, 26 Mar 2020 17:21:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 159.69.161.202 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:245809 Archived-At: The following errors rendered my Gnus installation unusable until I found some workarounds. I believe they should be corrected before release. However, I still have no clear solution for the second. ---- First problem: mailcap-user-data is emptied by (mailcap-parse-mailcaps). Formerly, in 26.3 and earlier, the information from .mailcap was added to the list. Now the variable is deleted even if there is no .mailcap file around. My configuration file relies on mailcap-add-mailcap-entry to add mailcap entries that are not external programs, such as doc-view. This cannot be configured neither with mailcap-user-mime-data nor with .mailcap. Workaround: set mailcap-parsed-p to T ---- Second problem: output from gpg.exe is read in binary mode, and corrupted because of ^M characters. I cannot find out what defines the mode of the buffer where the output of CALL-PROCESSS is written to. Help in debugging this is welcome. In 27.0.90: CALL-PROCESS: Args: ("c:/Program Files (x86)/GnuPG/bin/gpg.exe" nil (t nil) nil "--with-colons" "--list-config") Coding system ((coding-system-for-read binary) (buffer-file-coding-system utf-8-dos) (inhibit-eol-conversion nil)) In 26.3: CALL-PROCESS: Args: ("c:/Program Files (x86)/GnuPG/bin/gpg.exe" nil (t nil) nil "--with-colons" "--list-config") Coding system ((coding-system-for-read nil) (buffer-file-coding-system iso-latin-1-dos) (inhibit-eol-conversion nil)) An important difference is that in 26.3, epg-find-configuration is called by the package module, for signature verification. This guarantees that pgp is ok when Emacs is booted, even if gpg has not yet been used. This initial call does not happen in 27.0.90. The first time epg-find-configuration is used is from Gnus. This causes the coding system to be improperly set and the output from gpg.exe also to be improperly parsed. Workaround: add (epg-find-configuration 'OpenPGP) in .emacs before invoking Gnus. -- Juan José García Ripoll http://juanjose.garciaripoll.com http://quinfog.hbar.es