]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.232 v7.3.232
authorBram Moolenaar <Bram@vim.org>
Sun, 26 Jun 2011 02:01:44 +0000 (04:01 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 26 Jun 2011 02:01:44 +0000 (04:01 +0200)
Problem:    Python doesn't compile without +multi_byte
Solution:   Use "latin1" when MULTI_BYTE is not defined.

src/if_py_both.h
src/version.c

index 6cd1b23d3b16f026d687507d77d391f567e3d7ee..07eedb5f314be33b686dad8a74d72e6029ebb449 100644 (file)
  * Common code for if_python.c and if_python3.c.
  */
 
+#ifdef FEAT_MBYTE
+# define ENC_OPT p_enc
+#else
+# define ENC_OPT "latin1"
+#endif
+
 /*
  * obtain a lock on the Vim data structures
  */
@@ -68,7 +74,7 @@ OutputWrite(PyObject *self, PyObject *args)
     char *str = NULL;
     int error = ((OutputObject *)(self))->error;
 
-    if (!PyArg_ParseTuple(args, "es#", p_enc, &str, &len))
+    if (!PyArg_ParseTuple(args, "es#", ENC_OPT, &str, &len))
        return NULL;
 
     Py_BEGIN_ALLOW_THREADS
@@ -108,7 +114,7 @@ OutputWritelines(PyObject *self, PyObject *args)
        char *str = NULL;
        PyInt len;
 
-       if (!PyArg_Parse(line, "es#", p_enc, &str, &len)) {
+       if (!PyArg_Parse(line, "es#", ENC_OPT, &str, &len)) {
            PyErr_SetString(PyExc_TypeError, _("writelines() requires list of strings"));
            Py_DECREF(list);
            return NULL;
index 1b99d275a2b70ceac5da9571bc7840df1cd2485c..17e7c31681c633fa8fe3e5d22f01ecf59ffa7025 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    232,
 /**/
     231,
 /**/