[Issue 15783] Junk is written into environment variable after assigning null to it

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Mar 18 08:29:04 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15783

Simen Kjaeraas <simen.kjaras at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simen.kjaras at gmail.com

--- Comment #2 from Simen Kjaeraas <simen.kjaras at gmail.com> ---
core.sys.posix.stdlib.setenv is a simple wrapper around the posix function of
the same name, and should have the same behavior. This is not a bug in
core.sys.posix.stdlib, but one might argue there is one in phobos'
std.process.environment.

The OS is simply following the standard, which says nothing about how to handle
nulls:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/setenv.html

--


More information about the Digitalmars-d-bugs mailing list