charset weirdness with non-ascii User IDs

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Jul 11 23:46:47 CEST 2013


On Tue 2012-07-24 13:41:20 -0400, Daniel Kahn Gillmor wrote:

> i'm seeing some strange behavior with the keyservers on GNU/Linux
> systems that don't have a UTF-8 locale, or when LANG is set to something
> non-UTF8:
>
> 0 dkg at pip:~$ LANG=C gpg --keyserver keys.mayfirst.org --search '=Andrew Lee (李 健秋) <ajqlee at debian.org>'
> gpg: searching for "=Andrew Lee (æå¥ç§) <ajqlee at debian.org>" from hkp server keys.mayfirst.org
> (1)	Andrew Lee <andrew at linux.org.tw>
> 	Andrew Lee (\xe6\x9d\x8e\xe5\x81\xa5\xe7\xa7\x8b) <ajqlee at debian.org>
> 	Andrew Lee (\xe6\x9d\x8e\xe5\x81\xa5\xe7\xa7\x8b) <andrew at debian.org.t
> 	Andrew Lee (§?î) <andrew at linux.org.tw>
> 	  1024 bit DSA key 0xB6250985, created: 2004-11-02
> Keys 1-1 of 1 for "=Andrew Lee (李健秋) <ajqlee at debian.org>".  Enter number(s), N)ext, or Q)uit > q
> 0 dkg at pip:~$ LANG=C gpg --keyserver keys.mayfirst.org --search '=Antoine Beaupré (work) <anarcat at koumbit.org>''
> gpg: searching for "=Antoine Beaupré (work) <anarcat at koumbit.org>" from hkp server keys.mayfirst.org
> gpg: key "=Antoine Beaupré (work) <anarcat at koumbit.org>" not found on keyserver
> 0 dkg at pip:~$ 
>
> Note that the --search for Andrew's UTF-8 User ID succeeds, but
> Antoine's fails.
>
> This behavior happens on both gpg 1.4.12 and 2.0.19, and it happens with
> or without debian's gnupg-curl packages installed.
>
> Given that User IDs must be UTF-8-encoded, i'm not sure what the right
> thing to do is here.
>
> I tried searching for this bug on https://bugs.g10code.com, but i'm
> getting an error when i search for the term "charset" for some reason.

Digging this old message up as i try to do some triage.  i don't think i
ever heard a response about this.

I'm still seeing the same problem, only with some UIDs and not others:


0 dkg at alice:/tmp/cdtemp.fre2o5$ LANG=C gpg --keyserver keys.mayfirst.org --search ='Andrew Lee (李健秋) <ajqlee at debian.org>'
gpg: searching for "=Andrew Lee (æå¥ç§) <ajqlee at debian.org>" from hkp server keys.mayfirst.org
(1)	Andrew Lee <andrew at linux.org.tw>
	Andrew Lee (\xe6\x9d\x8e\xe5\x81\xa5\xe7\xa7\x8b) <ajqlee at debian.org>
	Andrew Lee (\xe6\x9d\x8e\xe5\x81\xa5\xe7\xa7\x8b) <andrew at debian.org.t
	Andrew Lee (§?î) <andrew at linux.org.tw>
	  1024 bit DSA key 0xB6250985, created: 2004-11-02
Keys 1-1 of 1 for "=Andrew Lee (李健秋) <ajqlee at debian.org>".  Enter number(s), N)ext, or Q)uit > q
0 dkg at alice:/tmp/cdtemp.fre2o5$ LANG=C gpg --keyserver keys.mayfirst.org --search ='Antoine Beaupré <anarcat at debian.org>'
gpg: searching for "=Antoine Beaupré <anarcat at debian.org>" from hkp server keys.mayfirst.org
gpg: key "=Antoine Beaupré <anarcat at debian.org>" not found on keyserver
0 dkg at alice:/tmp/cdtemp.fre2o5$ 


I've now reported this as:

 https://bugs.g10code.com/gnupg/issue1514

Any ideas?

  --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 965 bytes
Desc: not available
URL: </pipermail/attachments/20130711/c8c562f5/attachment.sig>


More information about the Gnupg-users mailing list