Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
You need to change
test_string = ctypes.c_char_p(This Is a test string, that should be of type
bytes)
to
test_string = ctypes.c_char_p(bThis Is a test string, that should be of type
bytes)
but this issue itself seems to be
New submission from DavidCzech davidczech...@gmail.com:
c_char_p.value doesn't return a bytes object on Windows.
http://docs.python.org/3.1/library/ctypes.html#fundamental-data-types states
that c_char_p is either a bytes object or None in Python, not str.
--
test_c_bug.py
--