gpgme pinentry-tty return mangling and cnt-j

Derek Schrock dereks at lifeofadishwasher.com
Sun Mar 3 22:49:33 UTC 2019


While looking at this FreeBSD PR
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234095 I noticed there
was an problem with pinentry-tty and gpgme (crypt_use_gpgme).

Like the issue described here 
https://mutt-users.mutt.narkive.com/Ygk07kZN/mutt-1-5-23-9-gnupg-2-1-6 
pinentry-tty output in mutt is mangled (see attached image) by not
properly handling the returns and to enter a passphrase with control-j.

Was the mangling of returns and control-j fixed in 2016 (e21b445e40502)
or was the hard redraw there to fix something else?  Maybe a possible
regression here?

This appears to still be an issue or at least has returned.  I've
reproduced this on FreeBSD 12amd64 with mail/mutt mutt 1.11.3 and Fedora
29 with mutt 1.10.1 and pinentry-tty 1.1.0.  So don't believe it's a
FreeBSD only issue.

I've always used pinentry-curses so I never noticed this issue with
pinentry-tty.

I use gpg-agent/pinetry with offlineimap and it doesn't have any issues
with a pinentry-tty prompt.  So maybe it's a curses program (mutt)
forking out to a tty program?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpgme.jpg
Type: image/jpeg
Size: 125149 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-dev/attachments/20190303/8b9cd852/attachment-0001.jpg>


More information about the Mutt-dev mailing list