Patch 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)
Files:      src/if_python3.c


*** ../vim-7.4a.007/src/if_python3.c    2013-07-03 18:27:35.000000000 +0200
--- src/if_python3.c    2013-07-09 17:23:11.000000000 +0200
***************
*** 86,92 ****
  #ifndef PyString_Check
  # define PyString_Check(obj) PyUnicode_Check(obj)
  #endif
! #define PyString_FromString(repr) PyUnicode_FromString(repr)
  #define PyString_FromFormat PyUnicode_FromFormat
  #ifndef PyInt_Check
  # define PyInt_Check(obj) PyLong_Check(obj)
--- 86,93 ----
  #ifndef PyString_Check
  # define PyString_Check(obj) PyUnicode_Check(obj)
  #endif
! #define PyString_FromString(repr) \
!     PyUnicode_Decode(repr, STRLEN(repr), ENC_OPT, NULL)
  #define PyString_FromFormat PyUnicode_FromFormat
  #ifndef PyInt_Check
  # define PyInt_Check(obj) PyLong_Check(obj)
*** ../vim-7.4a.007/src/version.c       2013-07-09 17:08:24.000000000 +0200
--- src/version.c       2013-07-09 17:24:31.000000000 +0200
***************
*** 730,731 ****
--- 730,733 ----
  {   /* Add new patch number below this line */
+ /**/
+     8,
  /**/

-- 
MICHAEL PALIN PLAYED: 1ST SOLDIER WITH A KEEN INTEREST IN BIRDS, DENNIS, MR
                      DUCK (A VILLAGE CARPENTER WHO IS ALMOST KEENER THAN
                      ANYONE ELSE TO BURN WITCHES), THREE-HEADED KNIGHT, SIR
                      GALAHAD, KING OF SWAMP CASTLE, BROTHER MAYNARD'S ROOMATE
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui