Skip to contentSkip to conversation

ebook backend: separate concatenated vcards with \r\n.

PATCH In review Marcel Mol 2 participants 2 messages Aug 12, 2010 Bluetooth drivers

lore
Share & tools
lore

Marcel Mol

author
#0 lore raw

PATCH 1/1 ebook backend: separate concatenated vcards with \r\n.

The END:VCARD is not ended with \r\n for single vcards. In a phonebook pull request vcards are concatenated as one big blob. Carkits seem to choke on the fact that an END:VCARD is directly followed by BEGIN:VCARD without \r\n separation. (as observed by many n900 users).

---
 plugins/phonebook-ebook.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
plugins/phonebook-ebook.c +3 -0
index ad40be3..da68ac0 100644
@@ -175,8 +175,11 @@ static void ebookpull_cb(EBook *book, EBookStatus estatus, GList *contacts,
 						data->params->filter);
 
 		string = g_string_append(string, vcard);
+		string = g_string_append(string, "\r\n");
 		g_free(vcard);
 	}
+	DBG("collected %d vcards", count);
+
 
 done:
 	data->cb(string->str, string->len, count, 0, data->user_data);
Signature · 1 line
1.7.2
#1 lore raw

Hi Marcel,

Quoted 8 lines · Marcel Mol

The END:VCARD is not ended with \r\n for single vcards. In a phonebook pull request vcards are concatenated as one big blob. Carkits seem to choke on the fact that an END:VCARD is directly followed by BEGIN:VCARD without \r\n separation. (as observed by many n900 users).

---
 plugins/phonebook-ebook.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

This one is also upstream now. Thanks.

Johan