Hello,
Emacs's epg.el uses command like this:
/opt/local/bin/gpg2 --no-tty --status-fd 1 --yes --enable-progress-filter --command-fd 0 --output ~/tmp/1.txt --pinentry-mode loopback --encrypt -r 1F41483804A67C2C
With 2.4.0:
[GNUPG:] KEY_CONSIDERED F5246A427219554078FD87291F41483804A67C2C 0 [GNUPG:] PROGRESS stdin ? 0 0 B [GNUPG:] BEGIN_ENCRYPTION 2 9 asdf ^D [GNUPG:] PROGRESS stdin ? 5 0 B [GNUPG:] END_ENCRYPTION
But in 2.4.1:
[GNUPG:] KEY_CONSIDERED F5246A427219554078FD87291F41483804A67C2C 0 asdf ^D [GNUPG:] PROGRESS stdin ? 0 0 B [GNUPG:] BEGIN_ENCRYPTION 2 9 [GNUPG:] PROGRESS stdin ? 5 0 B [GNUPG:] END_ENCRYPTION
epg.el checks BEGIN_ENCRYPTION in the output before sending input data (when data is a string, not a file).
I can see that using --command-fd 0 is not ideal: we're mixing commands with data input. OTOH I currently can't see a good way to fix it in Emacs. What would you recommend? Should it be considered a bug solely in Emacs, or can be reverted in GnuPG?
Thanks.