diff options
author | Florent Le Coz <louiz@louiz.org> | 2012-11-23 13:56:07 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2012-11-30 15:14:21 +0100 |
commit | 5db91443033d10af188206f6d5dc705bac22b0e8 (patch) | |
tree | 264265b7099903f8ca8dccf4b7cab0508c82a51c /src/pooptmodule.c | |
parent | 9e0fe54a496fa71b9bef87c1c19650dcc61060c5 (diff) | |
download | poezio-5db91443033d10af188206f6d5dc705bac22b0e8.tar.gz poezio-5db91443033d10af188206f6d5dc705bac22b0e8.tar.bz2 poezio-5db91443033d10af188206f6d5dc705bac22b0e8.tar.xz poezio-5db91443033d10af188206f6d5dc705bac22b0e8.zip |
Fix a byte value in the utf-8 decoding in poopt.
Diffstat (limited to 'src/pooptmodule.c')
-rw-r--r-- | src/pooptmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pooptmodule.c b/src/pooptmodule.c index 226d7182..7d40398d 100644 --- a/src/pooptmodule.c +++ b/src/pooptmodule.c @@ -98,7 +98,7 @@ static PyObject *poopt_cut_text(PyObject *self, PyObject *args) bpos += 2; else if (buffer[bpos] >= 224 && buffer[bpos] <= 239) bpos += 3; - else if (buffer[bpos] >= 240 && buffer[bpos] <= 244) + else if (buffer[bpos] >= 240 && buffer[bpos] <= 247) bpos += 4; else return NULL; |