]> git.notmuchmail.org Git - notmuch/commit
python: Encode query string as a utf-8 byte array
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Mon, 11 Jul 2011 09:39:42 +0000 (11:39 +0200)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Mon, 11 Jul 2011 09:46:54 +0000 (11:46 +0200)
commit504b6242d1fd67d04ee236fc92a54ca39fd682f7
treeccfc3cf538c5b0b77c938f094e00a5e3598f1dd1
parent22472d9def2f6525a9aac62e6481d8d4fa7db5d0
python: Encode query string as a utf-8 byte array

If we pass in an unicode instance as query string, we would probably get
weird behavior (and indeed do so, see mail
id:"20110707113700.GA16347@megatron"). If a unicode instance is passed
in, make sure we encode it properly to an utf-8 encoded byte string.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
bindings/python/notmuch/database.py