* [PATCH] ebook backend: separate concatenated vcards with \r\n.
@ 2010-08-12 10:20 Marcel Mol
2010-08-12 11:15 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Marcel Mol @ 2010-08-12 10:20 UTC (permalink / raw)
To: linux-bluetooth
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(-)
diff --git a/plugins/phonebook-ebook.c b/plugins/phonebook-ebook.c
index ad40be3..da68ac0 100644
--- a/plugins/phonebook-ebook.c
+++ b/plugins/phonebook-ebook.c
@@ -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);
--
1.7.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-12 11:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-12 10:20 [PATCH] ebook backend: separate concatenated vcards with \r\n Marcel Mol
2010-08-12 11:15 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox