[BUG+PATCH] address entry, vcard utf8 fixes



Hi all,

below is a small patch to address two utf8 related problems in Balsa CVS.

(1) When reading badly formed VCARD entries, it was not guaranteed that the name and/or nickname were actually converted from the system locale to utf8. The patch to libbalsa/address-book-vcard.c fixes this (and cleans up the code a little bit).

(2) The address entry widget simply doesn't accept any national chars and throws pango errors when trying to enter one. The reason is the use of the (depracted) GdkEventKey::string for libbalsa_keystroke_add_key() in libbalsa/address-entry.c. The patch now uses GdkEventKey::keyval and converts it properly from ucs4 to utf8.

Opinions?

Cheers, Albrecht.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Albrecht Dreß  -  Johanna-Kirchner-Straße 13  -  D-53123 Bonn (Germany)
      Phone (+49) 228 6199571  -  mailto:albrecht dress arcor de
_________________________________________________________________________

Attachment: balsa-vcard-address-entry-patch.gz
Description: GNU Zip compressed data

Attachment: pgpl0SQHo4pko.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]