This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: create_unicode_buffer() gives different results on Windows vs Linux
Type: Stage:
Components: ctypes Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: lazka
Priority: normal Keywords:

Created on 2019-12-26 10:54 by lazka, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg358885 - (view) Author: Christoph Reiter (lazka) * Date: 2019-12-26 10:54
>>> len(ctypes.create_unicode_buffer("\ud800\udc01", 2)[:])

On Windows: 1
On Linux: 2

Using Python 3.8 on both.
History
Date User Action Args
2022-04-11 14:59:24adminsetgithub: 83318
2019-12-26 10:54:39lazkacreate