0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

updated for version 7.3.300

Problem:    Python doesn't parse multi-byte argument correctly.
Solution:   Use "t" instead of "s". (lilydjwg)
This commit is contained in:
Bram Moolenaar
2011-09-07 19:30:21 +02:00
parent 0d55ff1594
commit 275648066d
2 changed files with 4 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ OutputWrite(PyObject *self, PyObject *args)
char *str = NULL; char *str = NULL;
int error = ((OutputObject *)(self))->error; 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; return NULL;
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
@@ -114,7 +114,7 @@ OutputWritelines(PyObject *self, PyObject *args)
char *str = NULL; char *str = NULL;
PyInt len; 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")); PyErr_SetString(PyExc_TypeError, _("writelines() requires list of strings"));
Py_DECREF(list); Py_DECREF(list);
return NULL; return NULL;

View File

@@ -709,6 +709,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
300,
/**/ /**/
299, 299,
/**/ /**/