[pypy-issue] Issue #3133: ctypes: surrogate pairs in unicode buffer not merged (pypy/pypy)

Christoph Reiter issues-reply at bitbucket.org
Mon Dec 23 16:03:34 EST 2019


New issue 3133: ctypes: surrogate pairs in unicode buffer not merged
https://bitbucket.org/pypy/pypy/issues/3133/ctypes-surrogate-pairs-in-unicode-buffer

Christoph Reiter:

```
buf = ctypes.create_unicode_buffer(2)
buf[0] = "\ud800"
buf[1] = "\udc01"
assert buf[:] == '\U00010001'
```

Works in CPython 3, fails with PyPy 3

‌




More information about the pypy-issue mailing list