Bug 13477 – std.process should ignore unnamed service variables on Windows
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2014-09-15T02:23:00Z
Last change time
2014-09-19T18:40:38Z
Keywords
pull
Assigned to
nobody
Creator
dlang-bugzilla
Comments
Comment #0 by dlang-bugzilla — 2014-09-15T02:23:29Z
Windows uses the environment block to keep track of the individual drives' current directories (to allow the command "X:" to return to drive X's current directory). These service variables can be seen in the output of the "set" command:
C:\> set
=C:=C:\
=D:=D:\Downloads
...
std.process.environment.toAA() should, however, ignore them, since:
1) Only one such variable will be stored (with an empty name), as since they have the same name, previous values will be overwritten in the AA.
2) Setting them results an error, which unnecessarily complicates saving and restoring the entire environment.
Comment #1 by dlang-bugzilla — 2014-09-15T02:26:18Z