1# ticket: 505
2
3cimport cython
4
5cdef extern from "Python.h":
6 cdef cython.unicode PyUnicode_DecodeUTF8(char* s, Py_ssize_t size, char* errors)
7
8def test_capi():
9 """
10 >>> print(test_capi())
11 abc
12 """
13 return PyUnicode_DecodeUTF8("abc", 3, NULL)
14