Gerald Turner <gtur...@unzane.com> writes:
> I'm a Python newbie so wouldn't know if it's possible to have the
> language be more lenient about decoding corrupt UTF-8 data, but after
> poking around stackoverflow.com it doesn't seem likely.

Sorry for the bug report if this is a core Python problem that cannot be
worked around by any particular module.

Ultimately perhaps GnuPG should gain a feature:

  When listing keys without --with-colons, gpg handles the corrupt UTF-8
  data in the function util/strgutil.c:utf8_to_native (outputs
  "\\x%02x"), however when --with-colons is in effect, the raw data is
  printed.

  Maybe we need a "--with-conversion" argument which would change the
  behavior of the function g10/keylist.c:list_keyblock_colon to call
  utf8_to_native when printing UID packets as well.

-- 
Gerald Turner                                Encrypted mail preferred!
0xEC942276FDB8716D  CA89 B27A 30FA 66C5 1B80  3858 EC94 2276 FDB8 716D

Attachment: pgpBp8n2NxuhZ.pgp
Description: PGP signature

Reply via email to