Bug#734179: pinentry-curses: Fails to display multiline prompts

2014-01-10 Thread GUO Yixuan
Hi,

On Sat, Jan 04, 2014 at 05:23:04PM +0100, Guilhem Moulin wrote:
 Since the upgrade to 0.8.3-1 pinentry-curses is no longer able to show
 multiline prompts. This is problematic when used with gpg-agent, since for
 instance the key ID that is being unlocked is no longer visible.
 
 Here is a minimal example:
 
 pinentry-curses --lc-ctype=en_US.UTF8 --ttyname=$(tty) END
 SETDESC This is%0Aa multiline%0Aprompt.%0A
 SETPROMPT
 GETPIN
 END
 
 0.8.3-1 shows some garbage after the first linefeed (encoded as %0A as per the
 PIN-entry protocol), whereas 0.8.1-1 shows a correct 3-lines prompt.
 
 FWIW, the following (multiline) prompt used by gpg2 (2.0.22-3) is properly
 passed to the gpg-agent (2.0.22-3) as shown in the log, but pinentry-curses
 0.8.3-1 only shows the first line.
 
 SETDESC Please enter the passphrase to unlock the secret key for the OpenPGP 
 certificate:%0A%22Guilhem Moulin guil...@fripost.org%22%0A4096-bit RSA key, 
 ID 0xC27306B86774D6F7,%0Acreated 2012-11-05 (main key ID 
 0x39278DA8109E6244).%0A

I found out that adding libncursesw5-dev to build-dep will solve this bug.

See also: http://bugs.debian.org/728512

Cheers,

GUO Yixuan


signature.asc
Description: Digital signature


Bug#734179: pinentry-curses: Fails to display multiline prompts

2014-01-04 Thread Guilhem Moulin
Package: pinentry-curses
Version: 0.8.3-1
Severity: important

Dear Maintainer,

Since the upgrade to 0.8.3-1 pinentry-curses is no longer able to show
multiline prompts. This is problematic when used with gpg-agent, since for
instance the key ID that is being unlocked is no longer visible.

Here is a minimal example:

pinentry-curses --lc-ctype=en_US.UTF8 --ttyname=$(tty) END
SETDESC This is%0Aa multiline%0Aprompt.%0A
SETPROMPT
GETPIN
END

0.8.3-1 shows some garbage after the first linefeed (encoded as %0A as per the
PIN-entry protocol), whereas 0.8.1-1 shows a correct 3-lines prompt.

FWIW, the following (multiline) prompt used by gpg2 (2.0.22-3) is properly
passed to the gpg-agent (2.0.22-3) as shown in the log, but pinentry-curses
0.8.3-1 only shows the first line.

SETDESC Please enter the passphrase to unlock the secret key for the OpenPGP 
certificate:%0A%22Guilhem Moulin guil...@fripost.org%22%0A4096-bit RSA key, 
ID 0xC27306B86774D6F7,%0Acreated 2012-11-05 (main key ID 0x39278DA8109E6244).%0A


Cheers,
-- 
Guilhem.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (800, 'testing'), (700, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.12-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pinentry-curses depends on:
ii  libc62.17-97
ii  libncurses5  5.9+20130608-1
ii  libtinfo55.9+20130608-1

pinentry-curses recommends no packages.

Versions of packages pinentry-curses suggests:
pn  pinentry-doc  none

-- no debconf information


signature.asc
Description: Digital signature