From bff44ae49b2aebf52cae6f830bcf9c521e9071ba Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 30 Oct 2001 16:17:48 +0000 Subject: make sure to translate the character sets of the names 2001-10-30 JP Rosevear * conduit/address-conduit.c (ecard_from_remote_record): make sure to translate the character sets of the names svn path=/trunk/; revision=14463 --- addressbook/ChangeLog | 4 ++++ addressbook/conduit/address-conduit.c | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 4af68a4032..779eaec546 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,9 @@ 2001-10-30 JP Rosevear + * conduit/address-conduit.c (ecard_from_remote_record): make sure + to translate the character sets of the names + +2001-10-30 JP Rosevear * gui/component/select-names/e-select-names-bonobo.c (manager_ok_cb): send a null bonobo arg to prevent explosion diff --git a/addressbook/conduit/address-conduit.c b/addressbook/conduit/address-conduit.c index ffbcaa2343..16a6a14e98 100644 --- a/addressbook/conduit/address-conduit.c +++ b/addressbook/conduit/address-conduit.c @@ -856,10 +856,8 @@ ecard_from_remote_record(EAddrConduitContext *ctxt, /* Name */ name = e_card_name_copy (ecard->name); - if (address.entry[entryFirstname] && *address.entry[entryFirstname]) - name->given = g_strdup (address.entry[entryFirstname]); - if (address.entry[entryLastname] && *address.entry[entryLastname]) - name->family = g_strdup (address.entry[entryLastname]); + name->given = get_entry_text (address, entryFirstname); + name->family = get_entry_text (address, entryLastname); simple = e_card_simple_new (ecard); txt = e_card_name_to_string (name); -- cgit v1.2.3