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:
Martin v. Löwis 2006-08-02 13:53:55 +00:00
parent 5c387f2e5d
commit 961b91bd3c
3 changed files with 15 additions and 20 deletions

View file

@ -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",