Descriptionsyscall: os.Setenv doesn't set environment variables to "" on Windows
On Windows, os.Setenv calls syscall.Setenv which calls
sycall.SetEnvironmentVariable. If syscall.Setenv is passed ""
for the value, it converts it to nil before calling
syscall.SetEnvironmentVariable, which then attempts to delete
the environment variable.
Fixes issue 5610.
Patch Set 1 #Patch Set 2 : diff -r c0c4cf119f9b https://code.google.com/p/go/ #Patch Set 3 : diff -r c0c4cf119f9b https://code.google.com/p/go/ #Patch Set 4 : diff -r c0c4cf119f9b https://code.google.com/p/go/ #MessagesTotal messages: 13
|