syscall: sort environment passed to CreateProcess / CreateProcessAsUser #29530
Labels
early-in-cycle
A change that should be done early in the 3 month dev cycle.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I looked at https://github.com/golang/go/blob/go1.11.4/src/syscall/exec_windows.go#L97-L122
What did you expect to see?
I expected to see the env vars sorted alphabetically by name, with case-insensitive sort, Unicode order, without regard to locale.
What did you see instead?
The code does not sort the environment variable entries. The MSDN docs state:
Note, this hasn't caused me any problems - but it seems like this could cause problems with any Windows kernel functions that expect the env to be sorted.
The text was updated successfully, but these errors were encountered: