The pinentry hangs up when i tried use gpg via 'git tag' command. I unset GPG_AGENT_INFO environment variable, but the problem is still here. Steps to reproduce: 1. Log in to any computer via ssh 2. unset GPG_AGENT_INFO 3. try use any program what uses gpg like "git tag -s" 4. requesting passphrase will hang up and you cannot do anything except Ctrl-C Pinentry puts info message (3x): pinentry-curses: no LC_CTYPE known - assuming UTF-8 This bug makes gpg unusable via ssh.
Created attachment 239111 [details] emerge --info output
Pinentry and gnupg compiled by these flags: [ebuild R ] app-crypt/pinentry-0.8.0 USE="-caps -gtk -ncurses -qt4 -static" 0 kB [ebuild R ] app-crypt/gnupg-2.0.15 USE="bzip2 nls -adns -caps -doc -ldap -openct -pcsc-lite (-selinux) -smartcard -static" 0 kB * Info: problem independent from ncurses USE flag on pientry.
Similar bug here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568375
You have to set GPG_TTY to the output of tty as mandated by the gpg docs, see http://www.gnupg.org/documentation/manuals/gnupg/Common-Problems.html
Please reopen if you have further information, regarding behaviour with comment#4 applied.