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 compile without +multi_byte
12 Solution: Use "latin1" when MULTI_BYTE is not defined.
13 Files: src/if_py_both.h
16 *** ../vim-7.3.231/src/if_py_both.h 2011-06-19 00:27:46.000000000 +0200
17 --- src/if_py_both.h 2011-06-26 03:58:07.000000000 +0200
21 * Common code for if_python.c and if_python3.c.
25 + # define ENC_OPT p_enc
27 + # define ENC_OPT "latin1"
31 * obtain a lock on the Vim data structures
36 int error = ((OutputObject *)(self))->error;
38 ! if (!PyArg_ParseTuple(args, "es#", p_enc, &str, &len))
41 Py_BEGIN_ALLOW_THREADS
44 int error = ((OutputObject *)(self))->error;
46 ! if (!PyArg_ParseTuple(args, "es#", ENC_OPT, &str, &len))
49 Py_BEGIN_ALLOW_THREADS
55 ! if (!PyArg_Parse(line, "es#", p_enc, &str, &len)) {
56 PyErr_SetString(PyExc_TypeError, _("writelines() requires list of strings"));
63 ! if (!PyArg_Parse(line, "es#", ENC_OPT, &str, &len)) {
64 PyErr_SetString(PyExc_TypeError, _("writelines() requires list of strings"));
67 *** ../vim-7.3.231/src/version.c 2011-06-26 03:16:58.000000000 +0200
68 --- src/version.c 2011-06-26 04:00:40.000000000 +0200
72 { /* Add new patch number below this line */
78 If evolution theories are correct, humans will soon grow a third
79 hand for operating the mouse.
81 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
82 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
83 \\\ an exciting new programming language -- http://www.Zimbu.org ///
84 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///