mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +00:00
Correction of patch #1455898: In the mbcs decoder, set final=False
for stream decoder, but final=True for the decode function.
This commit is contained in:
parent
5c387f2e5d
commit
961b91bd3c
3 changed files with 15 additions and 20 deletions
|
@ -481,7 +481,7 @@ mbcs_decode(PyObject *self,
|
|||
const char *data;
|
||||
Py_ssize_t size, consumed;
|
||||
const char *errors = NULL;
|
||||
int final = 1;
|
||||
int final = 0;
|
||||
PyObject *decoded;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "t#|zi:mbcs_decode",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue