diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-09-07 19:30:21 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-09-07 19:30:21 +0200 |
commit | 275648066d786aac4959cec8617aafc8264e78a2 (patch) | |
tree | 845f359f940391621cce06c84f96fc25df999a00 /src/if_py_both.h | |
parent | 0d55ff1594b9729b75e4654e3ac74bd2e8517b79 (diff) | |
download | vim-git-275648066d786aac4959cec8617aafc8264e78a2.tar.gz |
updated for version 7.3.300v7.3.300
Problem: Python doesn't parse multi-byte argument correctly.
Solution: Use "t" instead of "s". (lilydjwg)
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r-- | src/if_py_both.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h index c7870bc10..53c2167e1 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -74,7 +74,7 @@ OutputWrite(PyObject *self, PyObject *args) 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, PyObject *args) 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; |