gnupg 1.2.1&1.3.1 - BAD output with --with-colons --list-keys for russian uid, not equal --charset utf8 --list-keys

Yenot yenot@sec.to
Tue Apr 8 20:25:24 2003


--------------Boundary-00=_98Y0M8OSR3JV68Y1NDNO
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

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

[3rd attempt due to the kerckhoffs.g10code.com DNS problems]

On Wednesday 02 April 2003 12:29 pm, Werner Koch wrote:
> On Tue, 25 Mar 2003 17:53:00 +0300, Sekretnii Yenot said:
> > (Examples: kmail and kgpg.)  These programs are all written with
> > libraries that love raw UTF-8, but GPG is forcing these developers
> > to hand code an extra level of nonstandard decoding.  (Actually, it's
>
> You mean the escaping of certain characters.  This is required because
> you must do this for the delimters (colon and linefeed) and so the
> de-escaping is anyway required.  The escaping is straightforward and
> can be done in place; see gpgme/gpgme/conversion.c for an example.

For whatever reasons, people seem to be missing the decoding
[de-escaping] step.  Even GnuPG itself misses it at times.  Take
the attached key and do "gpg --import public_key.asc", then do
"gpg --list-keys yenot@sec.to". If your locale is set to a UTF-8
variant, you'll see that the first command garbles the UTF-8
characters that are not 7-bit clean, but the second command displays
the entire UID perfectly. [I'm testing this with GnuPG 1.2.1 on
Linux and a locale of en_US.UTF-8.]

Also:
Could someone using a recent version of Kmail verify whether the UID
used to sign this message is being displayed correctly?  If not,
please log this bug at http://bugs.kde.org.  I wanted to log it
myself, but my KDE version 3.0.3 is too old to log a bug report
against.

 - Yenot

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+kr5MP247TY29IxARAqFHAJ4v5qtO6uKf//02Ioa4kbrPLZaIFgCfevlm
OPVS1/ssrw7N5vWi0lthRbQ=
=e7PV
-----END PGP SIGNATURE-----

--------------Boundary-00=_98Y0M8OSR3JV68Y1NDNO
Content-Type: application/pgp-keys;
  name="my pgp key"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=public_key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