Message360511
| Author |
vstinner |
| Recipients |
eryksun, serhiy.storchaka, vstinner |
| Date |
2020年01月22日.21:59:02 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1579730342.4.0.516924749499.issue39406@roundup.psfhosted.org> |
| In-reply-to |
| Content |
Serhiy:
> Maybe use SetEnvironmentVariable() on Windows?
In bpo-39413, I implemented os.unsetenv() on Windows using SetEnvironmentVariable(), but Eryk reported that SetEnvironmentVariable() does not update the CRT API (_environ, _wenviron, getenv, etc.). So I reverted my change. See bpo-39413 for the details.
Eryk:
> Windows ucrt copies the buffer that's passed to _[w]putenv.
Thank you for checking manually. I pushed commit 0852c7dd52ac42e7843ddfef44571494e4c86070 to avoid putenv_dict on Windows. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2020年01月22日 21:59:02 | vstinner | set | recipients:
+ vstinner, serhiy.storchaka, eryksun |
| 2020年01月22日 21:59:02 | vstinner | set | messageid: <1579730342.4.0.516924749499.issue39406@roundup.psfhosted.org> |
| 2020年01月22日 21:59:02 | vstinner | link | issue39406 messages |
| 2020年01月22日 21:59:02 | vstinner | create |
|