bugreport without patches :-(

Janusz A. Urbanowicz alex at bofh.torun.pl
Tue Apr 24 14:18:02 CEST 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The environment is:

Subshell:alex at sword:[~]:10:> echo $LANG
pl_PL
Subshell:alex at 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ługiwane 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 at sword:[~]:12:>

Then I enter the command:

Subshell:alex at 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żenie: używana pamięć nie jest pamięcią bezpieczną!
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 at bofh.org.pl>
sig        27C81BC9 2001-03-25  Janusz A. Urbanowicz (BOFH) <alex at bofh.org.pl>
uid                            [revoked] Janusz A. Urbanowicz <flatline at mat.uni.torun.pl>
rev        27C81BC9 2001-02-05  Janusz A. Urbanowicz (BOFH) <alex at bofh.org.pl>
sig        BEBB6C05 1996-11-27  Marek J. Smolinski <mark at dec3600.boa.uni.torun.pl>
sig        27C81BC9 1996-11-27  Janusz A. Urbanowicz (BOFH) <alex at bofh.org.pl>
sig        8A284C31 1996-04-20  [brak identyfikatora u\xbfytkownika]
sig        2B3D7245 1998-03-09  Andrzej Bort <bort at zeus.polsl.gliwice.pl>
sig        AB95DEF9 1996-04-19  [brak identyfikatora u\xbfytkownika]
sig        7DF053B9 1999-09-10  Robert Maron <robmar at mimuw.edu.pl>
uid                            [revoked] Janusz A. Urbanowicz <flatline at ipx1.mat.uni.torun.pl>
rev        27C81BC9 2001-02-05  Janusz A. Urbanowicz (BOFH) <alex at 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 at knm.org.pl>
sig        C864C575 1998-02-23  Artur Czechowski
<arturcz at kerigma.cyf.gov.pl>
[...]
I see following problems in this output:

I. rev        AB425659 2001-02-05  [No user ID] 

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żytkownika]' 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ą się na http://www.gnupg.org/

iEYEARECAAYFAjrkwqUACgkQ51OOwCGTkWlMYACeOXmIMeOji3zk+RnydQGSjUtX
hL0AoJ3zmm45ZelP8yX6uapxeJnsTejc
=0lE3
-----END PGP SIGNATURE-----

-- 
Janusz A. Urbanowicz | ALEX3-RIPE | SF-Framling | Thawte Web Of Trust Notary

Gdy daję biednym chleb, nazywają mnie świętym. Gdy pytam, 
dlaczego biedni nie mają chleba, nazywają mnie komunistą. - abp. Helder Camara




More information about the Gnupg-devel mailing list