mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #8670: ctypes.c_wchar supports non-BMP characters with 32 bits wchar_t
This commit is contained in:
parent
5593d8aeb4
commit
749261e241
4 changed files with 25 additions and 17 deletions
|
@ -1386,7 +1386,7 @@ test_widechar(PyObject *self)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
test_aswidechar(PyObject *self, PyObject *args)
|
||||
unicode_aswidechar(PyObject *self, PyObject *args)
|
||||
{
|
||||
PyObject *unicode, *result;
|
||||
Py_ssize_t buflen, size;
|
||||
|
@ -1417,7 +1417,7 @@ test_aswidechar(PyObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
test_aswidecharstring(PyObject *self, PyObject *args)
|
||||
unicode_aswidecharstring(PyObject *self, PyObject *args)
|
||||
{
|
||||
PyObject *unicode, *result;
|
||||
Py_ssize_t size;
|
||||
|
@ -2321,8 +2321,8 @@ static PyMethodDef TestMethods[] = {
|
|||
{"test_u_code", (PyCFunction)test_u_code, METH_NOARGS},
|
||||
{"test_Z_code", (PyCFunction)test_Z_code, METH_NOARGS},
|
||||
{"test_widechar", (PyCFunction)test_widechar, METH_NOARGS},
|
||||
{"test_aswidechar", test_aswidechar, METH_VARARGS},
|
||||
{"test_aswidecharstring", test_aswidecharstring, METH_VARARGS},
|
||||
{"unicode_aswidechar", unicode_aswidechar, METH_VARARGS},
|
||||
{"unicode_aswidecharstring",unicode_aswidecharstring, METH_VARARGS},
|
||||
#ifdef WITH_THREAD
|
||||
{"_test_thread_state", test_thread_state, METH_VARARGS},
|
||||
{"_pending_threadfunc", pending_threadfunc, METH_VARARGS},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue