Fix a byte value in the utf-8 decoding in poopt.
This commit is contained in:
parent
9e0fe54a49
commit
5db9144303
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue