Message347600
The ctypes.create_string_buffer function uses the length of the string to create the buffer if no size is provided. Since windows wide chars are UTF-16 the buffer may actually need to be larger to store surrogate pairs. This code crashes on windows:
>>> create_unicode_buffer('\U00010000\U00010000')
ValueError: string too long |
|
Date |
User |
Action |
Args |
2019-07-10 05:07:40 | rmccampbell7 | set | recipients:
+ rmccampbell7 |
2019-07-10 05:07:40 | rmccampbell7 | set | messageid: <1562735260.22.0.463850120288.issue37536@roundup.psfhosted.org> |
2019-07-10 05:07:40 | rmccampbell7 | link | issue37536 messages |
2019-07-10 05:07:40 | rmccampbell7 | create | |
|