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.

Author eryksun
Recipients eryksun, vstinner
Date 2020-01-22.17:28:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579714119.55.0.232410001115.issue39420@roundup.psfhosted.org>
In-reply-to
Content
> The problem is that the _wputenv() function allows to insert variable 
> names containing the "=" character 

No, it does not. Your experiments uncovered bugs elsewhere with the implementations of _wgetenv and WINAPI GetEnvironmentVariableW, but this isn't one of them. _wputenv(L"victor==secret") updates the OS environment by calling SetEnvironmentVariableW(L"victor", L"=secret"). That is the only correct result. A variable name is only allowed to contain "=" as the first character, where it is unambiguous. The first "=" beyond the first character must be the value delimiter.
History
Date User Action Args
2020-01-22 17:28:39eryksunsetrecipients: + eryksun, vstinner
2020-01-22 17:28:39eryksunsetmessageid: <1579714119.55.0.232410001115.issue39420@roundup.psfhosted.org>
2020-01-22 17:28:39eryksunlinkissue39420 messages
2020-01-22 17:28:39eryksuncreate