bugreport without patches :-(
JanuszA.Urbanowicz
JanuszA.Urbanowicz
Tue Apr 24 13:18:02 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The environment is:
Subshell:alex@sword:[~]:10:> echo $LANG
pl_PL
Subshell:alex@sword:[~]:11:> gpg --version
gpg (GnuPG) 1.0.4h
Copyright (C) 2001 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.
Home: ~/.gnupg
Obs=B3ugiwane algorytmy:
Cipher: IDEA, 3DES, CAST5, BLOWFISH, RIJNDAEL, RIJNDAEL192, RIJNDAEL256,
TWOFISH
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA, ELG
Hash: MD5, SHA1, RIPEMD160, TIGER192
Subshell:alex@sword:[~]:12:>
Then I enter the command:
Subshell:alex@sword:[~]:12:> gpg -kvv | & less -r
gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!
gpg: Ostrze=BFenie: u=BFywana pami=EA=E6 nie jest pami=EAci=B1 bezpieczn=B1!
gpg: no subkey for key signature packet
gpg: no subkey for key signature packet
gpg: no subkey for key signature packet
gpg: no subkey for key signature packet
/home/alex/.gnupg/pubring.gpg
- -----------------------------
[...]
pub 1024R/27C81BC9 1994-01-05 Janusz A. Urbanowicz (BOFH) <alex@bofh.org.p=
l>
sig 27C81BC9 2001-03-25 Janusz A. Urbanowicz (BOFH) <alex@bofh.org.=
pl>
uid [revoked] Janusz A. Urbanowicz <flatline@mat=
.uni.torun.pl>
rev 27C81BC9 2001-02-05 Janusz A. Urbanowicz (BOFH) <alex@bofh.org.=
pl>
sig BEBB6C05 1996-11-27 Marek J. Smolinski <mark@dec3600.boa.uni.to=
run.pl>
sig 27C81BC9 1996-11-27 Janusz A. Urbanowicz (BOFH) <alex@bofh.org.=
pl>
sig 8A284C31 1996-04-20 [brak identyfikatora u\xbfytkownika]
sig 2B3D7245 1998-03-09 Andrzej Bort <bort@zeus.polsl.gliwice.pl>
sig AB95DEF9 1996-04-19 [brak identyfikatora u\xbfytkownika]
sig 7DF053B9 1999-09-10 Robert Maron <robmar@mimuw.edu.pl>
uid [revoked] Janusz A. Urbanowicz <flatline@ipx=
1.mat.uni.torun.pl>
rev 27C81BC9 2001-02-05 Janusz A. Urbanowicz (BOFH) <alex@bofh.org.=
pl>
rev AB425659 2001-02-05 [No user ID]
rev AB425659 2001-02-04 [No user ID]
sig 36F06CFD 1998-02-23 Viceprezes d/s Technicznych KNM <viceprezes=
@knm.org.pl>
sig C864C575 1998-02-23 Artur Czechowski
<arturcz@kerigma.cyf.gov.pl>
[...]
I see following problems in this output:
I. rev AB425659 2001-02-05 [No user ID]=20
1. This key is present in the both rings - it has all the IDs revoked and
this should somehow show but not as [No user ID].
2. The [No user ID] message is NOT translated (it should like in other cases
where '[brak identyfikatora u=BFytkownika]' message shows. This is beacuse =
of
get_primary_uid() in g10/getkey.c that passes "[No user ID]" string as
primary user ID if there is no one. Sometimes it gets replaced by the
translation in the processing, sometimes (if there's no valid IDs on key)
not - I've been unable to pinpoint the exact place of failure.
II. sig 8A284C31 1996-04-20 [brak identyfikatora u\xbfytkownika]
This instance of GPG has correct LANG variable and charset (in options file)
set but it mangles 8-bit characters in the messages in the output. This is
because there is no way of checking of the user ID string being
parsed/printed is a error message, or a actual user ID. User IDs are stored
in UTF8 format, while translations are stored in respective 8-bit charsets
(ISO-8859-2 being used as this one). If ISO charset is being printed as UTF
one, the results are mangled.
Commentary: using error string as User ID of key with no valid user idsm is
a kludge. Furthermore it is misleading to the user (the error string should
at least read "No valid user IDs" because for now user can assume that
somehow a key with no user IDs has sneaked into the ring in spite of all
this self-signed-uids stuff. So in this case this should look like:
sig 8A284C31 1996-04-20 [revoked] User name...
I see no easy way of doing this within the code. Sorry for the lack of good
news.
Alex
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4h (GNU/Linux)
Comment: Dalsze informacje znajduj=B1 si=EA na http://www.gnupg.org/
iEYEARECAAYFAjrkwqUACgkQ51OOwCGTkWlMYACeOXmIMeOji3zk+RnydQGSjUtX
hL0AoJ3zmm45ZelP8yX6uapxeJnsTejc
=3D0lE3
-----END PGP SIGNATURE-----
--=20
Janusz A. Urbanowicz | ALEX3-RIPE | SF-Framling | Thawte Web Of Trust Notary
Gdy daj=EA biednym chleb, nazywaj=B1 mnie =B6wi=EAtym. Gdy pytam,=20
dlaczego biedni nie maj=B1 chleba, nazywaj=B1 mnie komunist=B1. - abp. Held=
er Camara