From: weasel Date: Wed, 6 Jul 2005 12:22:02 +0000 (+0000) Subject: Properly convert --with-colons uid strings X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=25f155f0dafbe893e70e7109a7ebf65d6f1ae25b;p=pgp-tools.git Properly convert --with-colons uid strings git-svn-id: svn://svn.debian.org/pgp-tools/trunk@122 b513b33f-fedd-0310-b452-c3deb5f4c849 --- diff --git a/gpgsigs/gpgsigs b/gpgsigs/gpgsigs index 61c03be..ba139f7 100755 --- a/gpgsigs/gpgsigs +++ b/gpgsigs/gpgsigs @@ -155,7 +155,9 @@ while () { next; } if ( m/^uid:(?:.*?:){8,8}(.*):/s ) { - $uid = myrecode($1, "UTF-8", $charset); + $uid = $1; + $uid =~ s/\\x([0-9a-f][0-9a-f])/ chr(hex($1)) /gie; + $uid = myrecode($uid, "UTF-8", $charset); next; } if ( m/^sig:(?:.*?:){3,3}([0-9A-F]{8})([0-9A-F]{8}):(?:.*?:){5,5}(.*?):/ ) { @@ -226,6 +228,9 @@ sub print_tag my ($key, $uid) = @_; if (! defined $sigs->{$key}->{$uid}) { warn "uid '$uid' not found on key $key\n"; + #for (keys %{ $sigs->{$key} }) { + # print STDERR "only have $_\n"; + #}; return '(' . (' ' x @mykeys) . ')'; } my $r = '(';