|
Karsten Hopp |
4d07bf |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
4d07bf |
Subject: Patch 7.3.300
|
|
Karsten Hopp |
4d07bf |
Fcc: outbox
|
|
Karsten Hopp |
4d07bf |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
4d07bf |
Mime-Version: 1.0
|
|
Karsten Hopp |
4d07bf |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
4d07bf |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
4d07bf |
------------
|
|
Karsten Hopp |
4d07bf |
|
|
Karsten Hopp |
4d07bf |
Patch 7.3.300
|
|
Karsten Hopp |
4d07bf |
Problem: Python doesn't parse multi-byte argument correctly.
|
|
Karsten Hopp |
4d07bf |
Solution: Use "t" instead of "s". (lilydjwg)
|
|
Karsten Hopp |
4d07bf |
Files: src/if_py_both.h
|
|
Karsten Hopp |
4d07bf |
|
|
Karsten Hopp |
4d07bf |
|
|
Karsten Hopp |
4d07bf |
*** ../vim-7.3.299/src/if_py_both.h 2011-07-07 15:08:53.000000000 +0200
|
|
Karsten Hopp |
4d07bf |
--- src/if_py_both.h 2011-09-07 19:25:12.000000000 +0200
|
|
Karsten Hopp |
4d07bf |
***************
|
|
Karsten Hopp |
4d07bf |
*** 74,80 ****
|
|
Karsten Hopp |
4d07bf |
char *str = NULL;
|
|
Karsten Hopp |
4d07bf |
int error = ((OutputObject *)(self))->error;
|
|
Karsten Hopp |
4d07bf |
|
|
Karsten Hopp |
4d07bf |
! if (!PyArg_ParseTuple(args, "es#", ENC_OPT, &str, &len))
|
|
Karsten Hopp |
4d07bf |
return NULL;
|
|
Karsten Hopp |
4d07bf |
|
|
Karsten Hopp |
4d07bf |
Py_BEGIN_ALLOW_THREADS
|
|
Karsten Hopp |
4d07bf |
--- 74,80 ----
|
|
Karsten Hopp |
4d07bf |
char *str = NULL;
|
|
Karsten Hopp |
4d07bf |
int error = ((OutputObject *)(self))->error;
|
|
Karsten Hopp |
4d07bf |
|
|
Karsten Hopp |
4d07bf |
! if (!PyArg_ParseTuple(args, "et#", ENC_OPT, &str, &len))
|
|
Karsten Hopp |
4d07bf |
return NULL;
|
|
Karsten Hopp |
4d07bf |
|
|
Karsten Hopp |
4d07bf |
Py_BEGIN_ALLOW_THREADS
|
|
Karsten Hopp |
4d07bf |
***************
|
|
Karsten Hopp |
4d07bf |
*** 114,120 ****
|
|
Karsten Hopp |
4d07bf |
char *str = NULL;
|
|
Karsten Hopp |
4d07bf |
PyInt len;
|
|
Karsten Hopp |
4d07bf |
|
|
Karsten Hopp |
4d07bf |
! if (!PyArg_Parse(line, "es#", ENC_OPT, &str, &len)) {
|
|
Karsten Hopp |
4d07bf |
PyErr_SetString(PyExc_TypeError, _("writelines() requires list of strings"));
|
|
Karsten Hopp |
4d07bf |
Py_DECREF(list);
|
|
Karsten Hopp |
4d07bf |
return NULL;
|
|
Karsten Hopp |
4d07bf |
--- 114,120 ----
|
|
Karsten Hopp |
4d07bf |
char *str = NULL;
|
|
Karsten Hopp |
4d07bf |
PyInt len;
|
|
Karsten Hopp |
4d07bf |
|
|
Karsten Hopp |
4d07bf |
! if (!PyArg_Parse(line, "et#", ENC_OPT, &str, &len)) {
|
|
Karsten Hopp |
4d07bf |
PyErr_SetString(PyExc_TypeError, _("writelines() requires list of strings"));
|
|
Karsten Hopp |
4d07bf |
Py_DECREF(list);
|
|
Karsten Hopp |
4d07bf |
return NULL;
|
|
Karsten Hopp |
4d07bf |
*** ../vim-7.3.299/src/version.c 2011-09-07 19:08:57.000000000 +0200
|
|
Karsten Hopp |
4d07bf |
--- src/version.c 2011-09-07 19:26:05.000000000 +0200
|
|
Karsten Hopp |
4d07bf |
***************
|
|
Karsten Hopp |
4d07bf |
*** 711,712 ****
|
|
Karsten Hopp |
4d07bf |
--- 711,714 ----
|
|
Karsten Hopp |
4d07bf |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
4d07bf |
+ /**/
|
|
Karsten Hopp |
4d07bf |
+ 300,
|
|
Karsten Hopp |
4d07bf |
/**/
|
|
Karsten Hopp |
4d07bf |
|
|
Karsten Hopp |
4d07bf |
--
|
|
Karsten Hopp |
4d07bf |
A salesperson says: Translation:
|
|
Karsten Hopp |
4d07bf |
"backward compatible" Old technology
|
|
Karsten Hopp |
4d07bf |
"Premium" Overpriced
|
|
Karsten Hopp |
4d07bf |
"Can't keep it on the shelf" Unavailable
|
|
Karsten Hopp |
4d07bf |
"Stands alone" Piece of shit
|
|
Karsten Hopp |
4d07bf |
"Proprietary" Incompatible
|
|
Karsten Hopp |
4d07bf |
(Scott Adams - The Dilbert principle)
|
|
Karsten Hopp |
4d07bf |
|
|
Karsten Hopp |
4d07bf |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
4d07bf |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
4d07bf |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
4d07bf |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|