]> granicus.if.org Git - python/commit
Issue #9979: Use PyUnicode_AsWideCharString() in _ctypes module
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 29 Sep 2010 10:37:16 +0000 (10:37 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 29 Sep 2010 10:37:16 +0000 (10:37 +0000)
commit4c2e4fa242d2567e6f0bb5d112cc4e3c5d085b68
treeafe3f954be7ba7e8028512959c236b208d8bcb55
parentb29047876dcd889efab5b4adcba7ddb70ad4c3aa
Issue #9979: Use PyUnicode_AsWideCharString() in _ctypes module

 * Convert unicode to wide character string before creating the PyCapsule
   object
 * Catch integer overflow
 * Avoid useless memset()
 * Prepare the support of surrogates
Modules/_ctypes/callproc.c
Modules/_ctypes/cfield.c