[pkg-gnupg-maint] Bug#826405: --with-colons output is not forced to UTF-8 in error messages
Enrico Zini
enrico at debian.org
Sun Jun 5 11:24:48 UTC 2016
Package: gnupg
Version: 1.4.20-6
Severity: normal
Hello,
thank you for maintaining gnupg.
The documentation of --with-colons says:
--with-colons
Print key listings delimited by colons. Note that the output will be encoded in UTF-8 regardless of
any --display-charset setting. This format is useful when GnuPG is called from scripts and other
programs as it is easily machine parsed. The details of this format are documented in the file
‘doc/DETAILS’, which is included in the GnuPG source distribution.
However, given a file with a bad signature, I still need
--display-charset utf-8 to get utf-8 output regardless of locale:
$ cat /tmp/foo
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Changed message, with wrong signature
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org
iQIbBAEBCgAGBQJXU0eVAAoJEDVzElWdHgZLSsYP90ZNjvyIY63BTQv5tvRutF/V
sJ3eCIp2GCQ5AiQngv6dP0VMMN4f7bzTnjX4HpLOkgDftmtXm2LPyANkW2YXL1q0
A7WjkAUHlpnlGeGfkjfu58v++rVgVmORMTL1CRCuCWT/in4D3dBJJ6PUYR9W5S98
xnxmKfw+Gn9VJVl6I133k1wTEYfK2JY5o4aCQKcXiVZlFsE9CwatmoXhIJwIIV/Z
jDEMO74vURPqX1yesxIEBs7P97j6jiEgRqYkHmwqr+/FA524cYkjhA3vX7MG124N
nZt+8BREMJNzoCbSI2Nl/gQxTMEcyZtIOi8yKZzq5QmeT5ChdnPGVJhxXIFsNFUc
LR8goiONvIxATE2i5M+yPQvohiUlozwu/2s+zA9csjaya+IatcqMDTbkXxfUW7e7
wTiSv5IKwfuMb2JFhekElvJW5yRD3g+tEctB5eWGycTnUdtYBhdmkNZX2w2vnfly
Q+LDTtLH6MTPlkXb3+Vz0oy0sfZFhWou0p84L+SAMZf00083MaXJJbuUyRpbqJSm
lr1zsMVtcsW6vWCY2TIFV8krZk0v1A52CQFYm/9BC5sAFcFA6r5rtgQ56TVaW95b
wbMM0zN66Q7TlCJq4Wf34+9ZyQEs5IPk6QyyjnjQ6uPYExgfF3WrOsfjJSTupZLH
v85pPGXRppmFCX/Pk+U=
=eWfI
-----END PGP SIGNATURE-----
$ gpg --recv 3D983C52EB85980C46A56090357312559D1E064B
$ LANG=C gpg --no-options --with-colons --fixed-list-mode --no-tty --batch --verify /tmp/foo
gpg: Signature made Sat 04 Jun 2016 21:26:45 UTC using RSA key ID 9D1E064B
gpg: BAD signature from "Ond\xc5\x99ej Nov� <novy at ondrej.org>"
$ LANG=en_GB.UTF-8 gpg --no-options --with-colons --fixed-list-mode --no-tty --batch --verify /tmp/foo
gpg: Signature made Sat 04 Jun 2016 21:26:45 UTC using RSA key ID 9D1E064B
gpg: BAD signature from "Ondřej Nový <novy at ondrej.org>"
$ LANG=C gpg --no-options --with-colons --fixed-list-mode --no-tty --batch --display-charset utf-8 --verify /tmp/foo
gpg: Signature made Sat 04 Jun 2016 21:26:45 UTC using RSA key ID 9D1E064B
gpg: BAD signature from "Ondřej Nový <novy at ondrej.org>"
Enrico
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages gnupg depends on:
ii gpgv 1.4.20-6
ii libbz2-1.0 1.0.6-8
ii libc6 2.22-9
ii libreadline6 6.3-8+b4
ii libusb-0.1-4 2:0.1.12-30
ii zlib1g 1:1.2.8.dfsg-2+b1
Versions of packages gnupg recommends:
ii gnupg-curl 1.4.20-6
ii libldap-2.4-2 2.4.42+dfsg-2+b2
Versions of packages gnupg suggests:
pn gnupg-doc <none>
ii imagemagick 8:6.8.9.9-7+b2
ii libpcsclite1 1.8.17-1
pn parcimonie <none>
-- no debconf information
More information about the pkg-gnupg-maint
mailing list