emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Two errors in 27.* with Windows


From: Juan José García-Ripoll
Subject: Two errors in 27.* with Windows
Date: Thu, 26 Mar 2020 17:21:37 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (windows-nt)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]