1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Python doesn't parse multi-byte argument correctly.
12 Solution: Use "t" instead of "s". (lilydjwg)
13 Files: src/if_py_both.h
16 *** ../vim-7.3.299/src/if_py_both.h 2011-07-07 15:08:53.000000000 +0200
17 --- src/if_py_both.h 2011-09-07 19:25:12.000000000 +0200
21 int error = ((OutputObject *)(self))->error;
23 ! if (!PyArg_ParseTuple(args, "es#", ENC_OPT, &str, &len))
26 Py_BEGIN_ALLOW_THREADS
29 int error = ((OutputObject *)(self))->error;
31 ! if (!PyArg_ParseTuple(args, "et#", ENC_OPT, &str, &len))
34 Py_BEGIN_ALLOW_THREADS
40 ! if (!PyArg_Parse(line, "es#", ENC_OPT, &str, &len)) {
41 PyErr_SetString(PyExc_TypeError, _("writelines() requires list of strings"));
48 ! if (!PyArg_Parse(line, "et#", ENC_OPT, &str, &len)) {
49 PyErr_SetString(PyExc_TypeError, _("writelines() requires list of strings"));
52 *** ../vim-7.3.299/src/version.c 2011-09-07 19:08:57.000000000 +0200
53 --- src/version.c 2011-09-07 19:26:05.000000000 +0200
57 { /* Add new patch number below this line */
63 A salesperson says: Translation:
64 "backward compatible" Old technology
66 "Can't keep it on the shelf" Unavailable
67 "Stands alone" Piece of shit
68 "Proprietary" Incompatible
69 (Scott Adams - The Dilbert principle)
71 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
72 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
73 \\\ an exciting new programming language -- http://www.Zimbu.org ///
74 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///