View Single Post
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#243
Originally Posted by Graham Cobb View Post
By the way, looking at the hcidump output in wireshark I noticed a bug: in some circumstances the vcard has an N: line with only one ";". This is wrong -- every N: line must always have exactly four semicolons.
Ah, that rings a bell. I have some notes to that effect, the gist of it is:

Steps:
1. Export contacts (either 2.1 or 3.0 format, doesn't matter)
2. Run "grep '^N:' * | tr -dc ';\n' ';' | sort -u" in the output directory

Expected:
;;;;

Actual:
;
;;;;

but I never got around to filing a bug report, sorry :-( I think I may had decided vcard export was too broken to bother, for instance some of the vcards didn't even have an N: attribute to begin with.

Which code creates the vcard itself? Is it part of this project or part of the N900 contacts code?
Probably the latter, I'm guessing e_vcard_to_string().