ctypes: surrogate pairs in unicode buffer not merged

Create issue
Issue #3133 new
Christoph Reiter created an issue
buf = ctypes.create_unicode_buffer(2)
buf[0] = "\ud800"
buf[1] = "\udc01"
assert buf[:] == '\U00010001'

Works in CPython 3, fails with PyPy 3

Using pypy3.6-v7.3.0rc3

Comments (6)

  1. Christoph Reiter reporter

    OK, turns out CPython behaves differently on Windows than it does on Linux in this case. I guess I should file a CPython bug?

  2. Log in to comment