[issue8017] c_char_p.value does not return a bytes object in Windows.

2010-10-03 Thread Hirokazu Yamamoto
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

[issue8017] c_char_p.value does not return a bytes object in Windows.

2010-02-24 Thread DavidCzech
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 --