Ägypten: Problem with pinentry-qt

Ingo Klöcker kloecker@kde.org
Sun Dec 22 13:13:01 2002


--Boundary-02=_bbZB+kQheGIQmMQ
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Description: signed data
Content-Disposition: inline

On Sunday 15 December 2002 23:43, Bernhard Reiter wrote:
> > BTW, pinentry-gtk still doesn't show the DESC when it asks for my
> > passphrase. So the problem with non-ASCII characters in DESC is
> > still not fixed (cf. my message from Oct 3, 2002).
>
> Known, non-trivial, ticket is
> 	  https://intevation.de/rt/webrt?serial_num=3D1334&display=3DHistory

As this bug is really a PITA (because I always have to guess for which=20
of my keys pinentry wants to know the passphrase) I added the below=20
crude workaround which simply masks all non-7-bit characters as '.', so=20
that at least all 7-bit characters are displayed.

You should consider adding this to cvs as a temporary workaround since=20
it's IMO preferable to display something (the 7-bit characters of the=20
description) than not to display anything at all.

=2D-- pinentry-gtk.c.orig Sat Dec  7 18:12:34 2002
+++ pinentry-gtk.c      Sun Dec 22 11:34:03 2002
@@ -180,6 +180,11 @@ create_utf8_label (char *text)
   buf =3D pinentry_utf8_to_local (pinentry->lc_ctype, text);
   if (buf)
     {
+/* workaround for the disability of GTK 1.2 (?) to display labels
+   with 8-bit characters: all 8-bit characters are replaced by '.'
+   so that at least all 7-bit characters are displayed. */
+char* p;
+for(p =3D buf; *p; ++p) if( 0 > *p || 127 < *p ) *p=3D'.';
       w =3D gtk_label_new (buf);
       free (buf);
     }

Regards,
Ingo


--Boundary-02=_bbZB+kQheGIQmMQ
Content-Type: application/pgp-signature
Content-Description: signature

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

iD8DBQA+BZbbGnR+RTDgudgRAiB1AKDER6dJFh178LZivD2LNRhR/ArA3QCfaQy+
16IOqlPQf0qGKxXdkH5cHBE=
=p83j
-----END PGP SIGNATURE-----

--Boundary-02=_bbZB+kQheGIQmMQ--