[issue4867] crash in ctypes when passing a string to a function without defining argtypes
New submission from jice : This code works in python 2.5 & 2.6 : >>> import ctypes >>> lib=ctypes.cdll['./libtcod.so'] >>> lib.TCOD_console_init_root(80,50,'test',0) 1 In python 3.0, it crashes in _CallProc (callproc.c, line 1136) : if (a
[issue4867] crash in ctypes when passing a string to a function without defining argtypes
jice added the comment: Moving the ffi_type affectation before the pre-processor directive seems to work : 648d647 < #ifdef HAVE_USABLE_WCHAR_T 649a649 > #ifdef HAVE_USABLE_WCHAR_T ___ Python tracker <http://bugs.python.org/