Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
Bug report
This bug was encountered when working throughgh-106816, specificallythis comment chain.
_winapi.LCMapStringEx() raises the errorValueError: embedded null character when passed a string containing a null character.
This can be reproduced by running the following:
import _winapi_winapi.LCMapStringEx('abc\x00def')From the discussion in the linked PR it looks like theLCMapStringEximplementaion in 3.11 has already been improved to handle null characters and so maybe the same change can be brought forward into the 3.12 and 3.13 implementations?
Your environment
- CPython versions tested on: 3.13.0a0
- Operating system and architecture: Windows 11 on amd64