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_?= =?UTF-8?Q?Garc=C3=ADa?= Ripoll Newsgroups: gmane.emacs.bugs Subject: bug#40248: 27.0.90; Failure open .authinfo.gpg from Gnus Date: Fri, 27 Mar 2020 00:07:28 +0100 Message-ID: <86bloi1zrj.fsf@csic.es> 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="51887"; mail-complaints-to="usenet@ciao.gmane.io" To: 40248@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 27 00:08:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1jHbbi-000DNl-WA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Mar 2020 00:08:15 +0100 Original-Received: from localhost ([::1]:34056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHbbh-0001au-Vz for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Mar 2020 19:08:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56895) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHbbZ-0001ao-Om for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 19:08:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHbbX-0000gI-2c for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 19:08:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54388) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jHbbW-0000g5-6b for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 19:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jHbbW-0004fB-0L for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 19:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juan =?UTF-8?Q?Jos=C3=A9_?= =?UTF-8?Q?Garc=C3=ADa?= Ripoll Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Mar 2020 23:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40248 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158526405717889 (code B ref -1); Thu, 26 Mar 2020 23:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Mar 2020 23:07:37 +0000 Original-Received: from localhost ([127.0.0.1]:60361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHbb7-0004eS-AE for submit@debbugs.gnu.org; Thu, 26 Mar 2020 19:07:37 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49905) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHbb6-0004eK-CV for submit@debbugs.gnu.org; Thu, 26 Mar 2020 19:07:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56078) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHbb4-0001aB-Pq for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 19:07:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHbb3-00008N-5L for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 19:07:34 -0400 Original-Received: from cel1.sgai.csic.es ([161.111.10.57]:8011) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jHbb2-0008WQ-Ql for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 19:07:33 -0400 IronPort-SDR: aIcuafTQF2cxFkzNyfQogEmTcVD/dMSs1f4C0AucF7dYu8ctDRsTUoHgZA3sGAtXquYKi5/GHT dIoT1YRkBlP9gTRuCf6DMxjaG9PmQ4ae5CwckSkp2l9cfZRVQwJkYusN0yBSPC9alU68f649w6 mKasCF8P4DCfWV46C5torXVPS3bHrJRBVrLIQvJKBsLS8XGK6Yp9mXDIyhqcmm96CQphq4fl+R OALFrEVmvpYiF20T89/A6bgSGvYxWd0lrgY7Y6B3Mi9CuThNRCxBvDj5Uc/jjAdwJQlHw3quKk 1+M= IronPort-PHdr: 9a23:jRND6x0mjC6StV4CsmDT+DRfVm0co7zxezQtwd8ZseITLPad9pjvdHbS+e9qxAeQG9mCt7Qd1rWd6vi7EUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba59IRmssAnctssbjYR/JqotxBbCv2dFdflRyW50Kl2fmArx6N2t95B56SRQvPwh989EUarkeqkzUKJVAjc7PW0r/cPnrRbMQxeB6XsaSWUWjwFHAxPZ4xHgX5f+qTX1u+xg0ySHJ8L2TLQ0WTO/76d3TRLjlSkKOyIl/GzRl8d9ir9QrhC8qBxl24PaYJ+bOudwcK3ectwVWWVPU91NVyxYGI6wc5cDA/YDMOtesoLzp0EOrRy7BQS0AO3v1yVHhnnu0qM+1OQhChvB0xQhEd0UqnTbsMvyO70KXu6pzanI1TLDb/dS2Tzg74XIcA0hruuKXbJydsrR0lcgGxnKjlqKs4zqIzKV2f4Xv2iB7upgTeWvi2ojqwxqvjev3cYshZXTio0L0VDJ7CN0y5s7K92/TU50e9+kEJ1IuiGaLIR5WNkiT3t2tyYhzLANpJ21fDASxZg62xLTceGLf5SU7h75V+udPy10iXJ5dL6nhBu+7FKsxvHmWsWpylpGszZJn93Ku3sQzRLc8NKHReF4/kq53DaP0B3c5f9cLEAvkKrbN4YhwrktlpoPqUjDHjH5mEHxjKKObUUk //So6/zmYrXgvJOTK5R0igDiPag0hMO/Gvw0MgkIX2eF5eSxzKDv8VHjTLlXkvE6jrPVvZPEKcgBpqO1HxdZ0oM55Ba+Czem3s X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2EfFAC0NH1e/zJSZApmHQEBAQkBEQUFAYF7AoF2gR2BMYQag0iLX4RziEaDO4d5glmBZwoBAQEOEwgUBAEBgQSGFjgTAgMBAQEDAgUBAQEFAQEBAQEBBAMBAQECbQEBBwoCAYROIQEDBwoBNwxCARABgWcigXOBM2xGATcNAgUMAQEBEgIRATkBRIMJsS6BMhoCg2GBToQegQSBDioBgWSLSIEcgRABh1YSARECAQhXCQIFgkOCXgSNXgqJKJlHB4I/giiFN4l0gmmCTR2CTIECi1IcAxCME4RfogyESIFpgQpxM4ENgmwJRxhkjSskAwEWhEuJW3OIUIQOAg8VBoIXAQE X-IPAS-Result: A2EfFAC0NH1e/zJSZApmHQEBAQkBEQUFAYF7AoF2gR2BMYQag0iLX4RziEaDO4d5glmBZwoBAQEOEwgUBAEBgQSGFjgTAgMBAQEDAgUBAQEFAQEBAQEBBAMBAQECbQEBBwoCAYROIQEDBwoBNwxCARABgWcigXOBM2xGATcNAgUMAQEBEgIRATkBRIMJsS6BMhoCg2GBToQegQSBDioBgWSLSIEcgRABh1YSARECAQhXCQIFgkOCXgSNXgqJKJlHB4I/giiFN4l0gmmCTR2CTIECi1IcAxCME4RfogyESIFpgQpxM4ENgmwJRxhkjSskAwEWhEuJW3OIUIQOAg8VBoIXAQE X-IronPort-AV: E=Sophos;i="5.72,310,1580770800"; d="scan'208";a="26440835" Original-Received: from unknown (HELO smtpin.csic.es) ([10.100.82.50]) by cel1.sgai.csic.es with ESMTP; 27 Mar 2020 00:07:29 +0100 Original-Received: from DESKTOP-3A8AAJ0 (unknown [81.0.1.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 08930807E) by smtpin.csic.es (Postfix) with ESMTPSA id 3C98B10A8EC2 for ; Fri, 27 Mar 2020 00:07:29 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177763 Archived-At: Symptoms: 0. Install Gnu Privacy Guard for Windows or similar (non-msys) alternatives 1. Save login information in .authinfo.gpg 2. Launch Emacs on Windows 3. Launch Gnus (assumes an imap account is configured with a server in .aut= hinfo.gpg) 4. Gnus cannot connect to the IMAP server. What is happening: 1. Gnus calls nnimap-open-connection-1 2. nnimap-open-connection-1 binds (coding-system-for-read 'binary) 3. nnimap-credentials is invoked, which starts a chaing of calls ending up in epg-config--make-gpg-configuration 4. This function uses call-process 5. Because the coding system is set to 'binary, the DOS ^M characters are exposed and stored in the temporary buffer. 6. When epg-config--make-gpg-configuration parses the output from gpg.exe, it stores those characters in the configuration and version fields. 7. The system cannot parse those strings and concludes that there is no suitable gpg.exe file in the system. Workaround: Invoke (epg-find-configuration 'OpenPGP) from .emacs. In this situation, Emacs' call-process uses a suitable encoding to parse the output. Fix: a. Set a suitable value for the encoding around call-process in epg-config--make-gpg-configuration. Unfortunately, I do not know which value would work in non-Windows platforms. b. Rewrite all regexps in epg-config--make-gpg-configuration to ignore ^M characters. Unfortunately I am unfamiliar with gpg.exe's output format to do this with confidence. c. Revert to previous behavior in epg-config.el --- c:/Users/juanj/scoop/apps/emacs/27/share/emacs/27.0.90/lisp/epg-config.= el 2020-03-26 23:37:05.096603400 +0100 +++ c:/Users/juanj/scoop/apps/emacs/27/share/emacs/27.0.90/lisp/epg-config-= new.el 2020-03-27 00:06:26.138870700 +0100 @@ -181,7 +181,7 @@ =20 ;; Create an `epg-configuration' object for `gpg', using PROGRAM. (defun epg-config--make-gpg-configuration (program) - (let (config groups type args) + (let (config groups type args (coding-system-for-read nil)) (with-temp-buffer (apply #'call-process program nil (list t nil) nil (append (if epg-gpg-home-directory In GNU Emacs 27.0.90 (build 5, x86_64-w64-mingw32) of 2020-03-25 built on DESKTOP-3A8AAJ0 Repository revision: 4860530f3c130c6f854ea83dcc03f59e535a33ba Repository branch: emacs-27 Windowing system distributor 'Microsoft Corp.', version 10.0.18363 System Description: Microsoft Windows 10 Pro for Workstations (v10.0.1909.1= 8363.720) Recent messages: Sending email=20=20 Sending email done Sending...done command-execute: Command attempted to use minibuffer while in minibuffer e is undefined p is undefined Quit Making completion list... ESC M-x is undefined Quit Configured using: 'configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: ESN locale-coding-system: cp1252 Major mode: Emacs-Lisp Minor modes in effect: ido-vertical-mode: t save-place-mode: t savehist-mode: t gcmh-mode: t override-global-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (gnutls epa-file network-stream nsm smtpmail qp pp shadow sort vc-git diff-mode mailalias bbdb-mua bbdb-com crm bbdb bbdb-site timezone org-mime ox-org org-protocol ox-reveal cl ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-element avl-tree generator org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities org-version ob-python ob ob-tangle org-src ob-ref ob-lob ob-table ob-exp ob-comint comint ansi-color ring ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat org-macs org-loaddefs noutline outline face-remap mail-extr warnings emacsbug message rmc puny format-spec rfc822 mml mml-sec epa derived epg epg-config mailabbrev gmm-utils mailheader eieio-opt speedbar sb-image ezimage dframe cal-menu calendar cal-loaddefs thingatpt help-fns radix-tree benchmark-init-modes mm-decode mm-bodies mm-encode mail-parse rfc2231 debug backtrace find-func mailcap pcase ido-vertical-mode ido gnus-win gnus nnheader gnus-util rmail rmail-loaddefs text-property-search time-date sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired dired-loaddefs grayscale-theme saveplace savehist edmacro kmacro cus-edit cus-start cus-load wid-edit benchmark-init advice gcmh diminish cl-extra help-mode use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core finder-inf tex-site info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 411297 173966) (symbols 48 26521 16) (strings 32 148179 19593) (string-bytes 1 4021443) (vectors 16 50121) (vector-slots 8 1383982 345852) (floats 8 278 875) (intervals 56 1333 586) (buffers 1000 21)) --=20 Juan Jos=C3=A9 Garc=C3=ADa Ripoll Quantum Information and Foundations Group Institute of Fundamental Physics IFF-CSIC Calle Serrano 113b, Madrid 28006 Spain http://quinfog.hbar.es - http://juanjose.garcia.ripoll