[pkg-gnupg-maint] Bug#795229: Bug#795229: cannot find my key without a UTF-8 locale
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Aug 12 01:44:48 UTC 2015
Control: forwarded 795229 https://bugs.gnupg.org/gnupg/issue2067
Control: severity 795229 normal
Control: tags 795229 + upstream
Control: affects 795229 gnupg2
Hi Anarcat--
The obvious workarounds (like having a UTF-8 locale installed, which
should be the default on any sane modern OS) suggest to me that this is
lower priority than "important", though i understand that it's
frustrating.
I note that LANG=C.UTF-8 does seem to work as well.
I've forward this upstream as noted above. hopefully upstream will have
some answers. Do you have any suggestion of what to gpg should do in
this situation, btw?
It's on a system that has a non-UTF-8 locale, and it just received a
string of octets on argv that either don't make sense in its native
locale (the C.US-ASCII case), or that mean "Beaupré" in its native
locale (in the C.ISO-8859-1 case). What should gpg do?
--dkg
On Tue 2015-08-11 21:14:19 -0400, Antoine Beaupré wrote:
> Package: gnupg
> Version: 1.4.18-7
> Severity: important
> File: /usr/bin/gpg
> Tags: l10n
>
> gpg can't seem to operate properly if the environment is not correctly set:
>
> [1007]anarcat at marcos:~$ LANG=C gpg --search-keys ='Antoine Beaupré <anarcat at koumbit.org>'
> gpg: searching for "=Antoine Beaupré <anarcat at koumbit.org>" from hkp server pool.sks-keyservers.net
> gpg: key "=Antoine Beaupré <anarcat at koumbit.org>" not found on keyserver
> [1008]anarcat at marcos:~$ LANG=C.UTF-8 gpg --search-keys ='Antoine Beaupré <anarcat at koumbit.org>'
> gpg: searching for "=Antoine Beaupré <anarcat at koumbit.org>" from hkp server pool.sks-keyservers.net
> (1) Antoine Beaupré <anarcat at debian.org>
> Antoine Beaupré <anarcat at koumbit.org>
> Antoine Beaupré <anarcat at orangeseeds.org>
> Antoine Beaupré (work) <anarcat at koumbit.org>
> Antoine Beaupré (Debian) <anarcat at debian.org>
> Antoine Beaupré (home address) <anarcat at anarcat.ath.cx>
> 4096 bit RSA key 7B75921E, created: 2009-05-29, expires: 2016-06-01
> (2) The Anarcat <anarcat at koumbit.org>
> The Anarcat <anarcat at anarcat.ath.cx>
> Antoine Beaupré <antoine at koumbit.org>
> 1024 bit DSA key 4023702F, created: 2005-03-08, expires: 2010-03-12 (revoked) (expired)
> Keys 1-2 of 2 for "=Antoine Beaupré <anarcat at koumbit.org>". Enter number(s), N)ext, or Q)uit > q
>
> This is pretty annoying, because it expects *everyone* to have a UTF-8
> locale. Because my uid has an accent in it, it makes it impossible for
> some people to search for my key on the keyservers.
>
> This is also a problem with gpg2:
>
> [1002]anarcat at marcos:~$ LANG=C gpg2 --search-keys ='Antoine Beaupré <a
> gpg: searching for "=Antoine Beaupré <anarcat at koumbit.org>" from hkp server po
> gpg: key "=Antoine Beaupré <anarcat at koumbit.org>" not found on keyserver
> [1003]anarcat at marcos:~$ LANG=C.UTF-8 gpg2 --search-keys ='Antoine Beaupré <anarcat at koumbit.org>'
> gpg: searching for "=Antoine Beaupré <anarcat at koumbit.org>" from hkp server pool.sks-keyservers.net
> (1) Antoine Beaupré <anarcat at debian.org>
> Antoine Beaupré <anarcat at koumbit.org>
> Antoine Beaupré <anarcat at orangeseeds.org>
> Antoine Beaupré (work) <anarcat at koumbit.org>
> Antoine Beaupré (Debian) <anarcat at debian.org>
> Antoine Beaupré (home address) <anarcat at anarcat.ath.cx>
> 4096 bit RSA key 7B75921E, created: 2009-05-29, expires: 2016-06-01
> (2) The Anarcat <anarcat at koumbit.org>
> The Anarcat <anarcat at anarcat.ath.cx>
> Antoine Beaupré <antoine at koumbit.org>
> 1024 bit DSA key 4023702F, created: 2005-03-08, expires: 2010-03-12 (revoked) (expired)
> Keys 1-2 of 2 for "=Antoine Beaupré <anarcat at koumbit.org>". Enter number(s), N)ext, or Q)uit > q
>
> -- System Information:
> Debian Release: 8.1
> APT prefers stable
> APT policy: (500, 'stable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
> Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.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.18-7
> ii libbz2-1.0 1.0.6-7+b3
> ii libc6 2.19-18
> ii libreadline6 6.3-8+b3
> ii libusb-0.1-4 2:0.1.12-25
> ii zlib1g 1:1.2.8.dfsg-2+b1
>
> Versions of packages gnupg recommends:
> ii gnupg-curl 1.4.18-7
> ii libldap-2.4-2 2.4.40+dfsg-1
>
> Versions of packages gnupg suggests:
> ii eog 3.14.1-1
> pn gnupg-doc <none>
> ii imagemagick 8:6.8.9.9-5
> ii libpcsclite1 1.8.13-1
> pn parcimonie <none>
>
> -- no debconf information
>
> _______________________________________________
> pkg-gnupg-maint mailing list
> pkg-gnupg-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-gnupg-maint
More information about the pkg-gnupg-maint
mailing list