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
Comment #2 by github-bugzilla — 2014-09-19T18:40:38Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/4e60afae7951e10c04e1b53e018007dbcd8cc04c fix Issue 13477 - std.process should ignore unnamed service variables on Windows https://github.com/D-Programming-Language/phobos/commit/449ab2a39e530375372ee90bab0d791b36585dce Merge pull request #2514 from CyberShadow/pull-20140915-022527 fix Issue 13477 - std.process should ignore unnamed service variables on Windows