On Fri, 2009-08-07 at 20:02 +1000, Ben Finney wrote:
> The ‘who-uploads’ program is not printing Unicode characters
> correctly:
> 
> =====
> $ who-uploads python-minimock
> Uploads for python-minimock:
> 1.2.3-1 to unstable: Michal \x8ciha\x99 <[email protected]>

The relevant portion of who-uploads is basically doing this:

$ gpg --no-options --no-auto-check-trustdb --no-default-keyring --keyring 
/usr/share/keyrings/debian-keyring.gpg --keyring 
/usr/share/keyrings/debian-keyring.pgp --keyring 
/usr/share/keyrings/debian-maintainers.gpg --list-key --with-colons 36E75604 | 
egrep @debian\.org | cut -d: -f10 | iconv -c -f UTF-8
Michal \x8ciha\x99 <[email protected]>

with the exception of the UID selection being awk-based rather than grep
+ cut. If you can tell me the relevant options to pass to gnupg to have
the result look correct then I'll gladly add them; my initial attempts
with --display-charset all failed in the same way.

fwiw, before the iconv (i.e. purely from gnupg) the output is

Michal �\x8ciha�\x99 <[email protected]>

Regards,

Adam



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to