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/conduit/address-conduit.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'addressbook/conduit') 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