https://issues.dlang.org/show_bug.cgi?id=15783
e10s <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from e10s <[email protected]> --- Test case: import std.conv; import std.stdio; import std.string; import core.sys.posix.stdlib; void main() { immutable key = "AAAAAAAA".toStringz; foreach (i; 0 .. 100) { setenv(key, null, 1); const r = getenv(key); if (r && *r) { writefln("%s %s %s", i, r, r.to!string); } } } Result: http://melpon.org/wandbox/permlink/cqfITPRJMSKOD60q It's terrible. What does getenv return? --
