1. Python CFFI
  2. Untitled project
  3. cffi

Source

cffi / c / wchar_helper.h

Author Commit Message Date Builds
Armin Rigo
typo
Armin Rigo
When sizeof(wchar_t) == 4 but we are using 2-bytes unicode characters in Python, even the 2.7 version of PyUnicode_FromWideChar() fails to detect values that are too large to be encoded as surrogates, and returns nonsense. In a "better safe than sorry" effort, raise ValueError in this case.
Armin Rigo
in-progress
Branches
wchar_t
Armin Rigo
in-progress
Branches
wchar_t