]> git.notmuchmail.org Git - notmuch/commitdiff
python: Ensure that we pass utf-8 encoded string to libnotmuch
authorMartin Owens <doctormo@gmail.com>
Fri, 16 Sep 2011 11:19:14 +0000 (13:19 +0200)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Fri, 16 Sep 2011 11:19:14 +0000 (13:19 +0200)
If we use unicode objects, libnotmuch would not cope with null bytes in
the byte array, so we need to make sure they are nicely formatted as
utf-8.

Introduce a helper function _str which does this throughout the code.

Patch slightly modified by Sebastian Spaeth.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>

No differences found