Karsten Hopp 5f7d04
To: vim_dev@googlegroups.com
Karsten Hopp 5f7d04
Subject: Patch 7.3.749
Karsten Hopp 5f7d04
Fcc: outbox
Karsten Hopp 5f7d04
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 5f7d04
Mime-Version: 1.0
Karsten Hopp 5f7d04
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 5f7d04
Content-Transfer-Encoding: 8bit
Karsten Hopp 5f7d04
------------
Karsten Hopp 5f7d04
Karsten Hopp 5f7d04
Patch 7.3.749
Karsten Hopp 5f7d04
Problem:    Python interface doesn't build without the multi-byte feature.
Karsten Hopp 5f7d04
Solution:   Add #ifdef. (Ken Takata)
Karsten Hopp 5f7d04
Files:	    src/if_py_both.h
Karsten Hopp 5f7d04
Karsten Hopp 5f7d04
Karsten Hopp 5f7d04
*** ../vim-7.3.748/src/if_py_both.h	2012-10-05 21:30:04.000000000 +0200
Karsten Hopp 5f7d04
--- src/if_py_both.h	2012-12-05 16:27:20.000000000 +0100
Karsten Hopp 5f7d04
***************
Karsten Hopp 5f7d04
*** 520,526 ****
Karsten Hopp 5f7d04
      if (!PyArg_ParseTuple(args, "s", &expr))
Karsten Hopp 5f7d04
  	return NULL;
Karsten Hopp 5f7d04
  
Karsten Hopp 5f7d04
!     return PyLong_FromLong(mb_string2cells((char_u *)expr, (int)STRLEN(expr)));
Karsten Hopp 5f7d04
  }
Karsten Hopp 5f7d04
  
Karsten Hopp 5f7d04
  /*
Karsten Hopp 5f7d04
--- 520,532 ----
Karsten Hopp 5f7d04
      if (!PyArg_ParseTuple(args, "s", &expr))
Karsten Hopp 5f7d04
  	return NULL;
Karsten Hopp 5f7d04
  
Karsten Hopp 5f7d04
!     return PyLong_FromLong(
Karsten Hopp 5f7d04
! #ifdef FEAT_MBYTE
Karsten Hopp 5f7d04
! 	    mb_string2cells((char_u *)expr, (int)STRLEN(expr))
Karsten Hopp 5f7d04
! #else
Karsten Hopp 5f7d04
! 	    STRLEN(expr)
Karsten Hopp 5f7d04
! #endif
Karsten Hopp 5f7d04
! 	    );
Karsten Hopp 5f7d04
  }
Karsten Hopp 5f7d04
  
Karsten Hopp 5f7d04
  /*
Karsten Hopp 5f7d04
*** ../vim-7.3.748/src/version.c	2012-12-05 16:10:21.000000000 +0100
Karsten Hopp 5f7d04
--- src/version.c	2012-12-05 16:29:27.000000000 +0100
Karsten Hopp 5f7d04
***************
Karsten Hopp 5f7d04
*** 727,728 ****
Karsten Hopp 5f7d04
--- 727,730 ----
Karsten Hopp 5f7d04
  {   /* Add new patch number below this line */
Karsten Hopp 5f7d04
+ /**/
Karsten Hopp 5f7d04
+     749,
Karsten Hopp 5f7d04
  /**/
Karsten Hopp 5f7d04
Karsten Hopp 5f7d04
-- 
Karsten Hopp 5f7d04
Contrary to popular belief, Unix is user friendly.
Karsten Hopp 5f7d04
It just happens to be selective about who it makes friends with.
Karsten Hopp 5f7d04
                                               -- Dave Parnas
Karsten Hopp 5f7d04
Karsten Hopp 5f7d04
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 5f7d04
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 5f7d04
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 5f7d04
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///