Common bugs
- UTF-8 Slicing. Doing string[:20] in a utf-8 string will result in nasty bugs. Use str(unicode(string)[:20] instead
- Socket is utf-8. The server / other clients will kill you if:
- You send wrong payload sizes (because you did a len() over a unicode string)
- You send iso-8839-1 in your PSM (older emesene revisions borked easily with this..)
- Threads and gobject: NO! This will bring up many race condition bugs
- Avoid filling the userlist. Yeah, more race conditions, and some GTK 2.8 problems
Attachments
Download in other formats: