aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim
diff options
context:
space:
mode:
authorGravatar Sebastian Spaeth <Sebastian@SSpaeth.de>2011-07-11 15:02:12 +0200
committerGravatar Sebastian Spaeth <Sebastian@SSpaeth.de>2011-07-11 15:02:12 +0200
commit687366b920caa5de6ea0b66b70cf2a11e5399f7b (patch)
treedac5041561985fdeea484682fb0ef440627b969b /vim
parent504b6242d1fd67d04ee236fc92a54ca39fd682f7 (diff)
python: represent message tags as unicode instances
Rather than returning simply strings and having to guess their encoding, return explicit unicode() strings for the tags. Xapian stores UTF8, so we know that they come as UTF8 encoded string. Note: I tried to directly use the c_wchar_p type of the ctypes library which translates directly into an unicode type, but that did not work out so well, so we take c_char_p and .decode() them manually. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'vim')
0 files changed, 0 insertions, 0 deletions