mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.4a.008
Problem: Python 3 doesn't handle multibyte characters prooperly when 'encoding' is not utf-8. Solution: Use PyUnicode_Decode() instead of PyUnicode_FromString(). (Ken Takata)
This commit is contained in:
parent
b69510e889
commit
e032461eed
@ -86,7 +86,8 @@
|
|||||||
#ifndef PyString_Check
|
#ifndef PyString_Check
|
||||||
# define PyString_Check(obj) PyUnicode_Check(obj)
|
# define PyString_Check(obj) PyUnicode_Check(obj)
|
||||||
#endif
|
#endif
|
||||||
#define PyString_FromString(repr) PyUnicode_FromString(repr)
|
#define PyString_FromString(repr) \
|
||||||
|
PyUnicode_Decode(repr, STRLEN(repr), ENC_OPT, NULL)
|
||||||
#define PyString_FromFormat PyUnicode_FromFormat
|
#define PyString_FromFormat PyUnicode_FromFormat
|
||||||
#ifndef PyInt_Check
|
#ifndef PyInt_Check
|
||||||
# define PyInt_Check(obj) PyLong_Check(obj)
|
# define PyInt_Check(obj) PyLong_Check(obj)
|
||||||
|
@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
8,
|
||||||
/**/
|
/**/
|
||||||
7,
|
7,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user