]> git.notmuchmail.org Git - notmuch/commitdiff
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)
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>

No differences found