Message360490
> 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. |
|
Date |
User |
Action |
Args |
2020-01-22 17:28:39 | eryksun | set | recipients:
+ eryksun, vstinner |
2020-01-22 17:28:39 | eryksun | set | messageid: <1579714119.55.0.232410001115.issue39420@roundup.psfhosted.org> |
2020-01-22 17:28:39 | eryksun | link | issue39420 messages |
2020-01-22 17:28:39 | eryksun | create | |
|