# HG changeset patch # User Bram Moolenaar # Date 1315416621 -7200 # Node ID 2665b456ee59652c7b590dff0fa522ce337e0f16 # Parent 669634ac295cd8c703e7d927dd7a8867e9aa63ee updated for version 7.3.300 Problem: Python doesn't parse multi-byte argument correctly. Solution: Use "t" instead of "s". (lilydjwg) diff --git a/src/if_py_both.h b/src/if_py_both.h --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -74,7 +74,7 @@ OutputWrite(PyObject *self, PyObject *ar char *str = NULL; int error = ((OutputObject *)(self))->error; - if (!PyArg_ParseTuple(args, "es#", ENC_OPT, &str, &len)) + if (!PyArg_ParseTuple(args, "et#", ENC_OPT, &str, &len)) return NULL; Py_BEGIN_ALLOW_THREADS @@ -114,7 +114,7 @@ OutputWritelines(PyObject *self, PyObjec char *str = NULL; PyInt len; - if (!PyArg_Parse(line, "es#", ENC_OPT, &str, &len)) { + if (!PyArg_Parse(line, "et#", ENC_OPT, &str, &len)) { PyErr_SetString(PyExc_TypeError, _("writelines() requires list of strings")); Py_DECREF(list); return NULL; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -710,6 +710,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 300, +/**/ 299, /**/ 298,