Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7019)

Issue 9945044: code review 9945044: syscall: os.Setenv doesn't set environment variables to...

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by peterGo
Modified:
10 years, 3 months ago
Visibility:
Public.

Description

syscall: 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/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -7 lines) Patch
M src/pkg/syscall/env_windows.go View 1 1 chunk +3 lines, -7 lines 0 comments Download

Messages

Total messages: 13
peterGo
10 years, 10 months ago (2013-06-02 15:31:53 UTC) #1
peterGo
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
10 years, 10 months ago (2013-06-02 15:33:23 UTC) #2
bradfitz
where's the new test? On Sun, Jun 2, 2013 at 8:33 AM, <go.peter.90@gmail.com> wrote: > ...
10 years, 10 months ago (2013-06-02 15:40:12 UTC) #3
minux1
this is an API change, and as i'm not convinced the old behavior is wrong, ...
10 years, 10 months ago (2013-06-02 23:29:42 UTC) #4
bradfitz
On Sun, Jun 2, 2013 at 4:29 PM, minux <minux.ma@gmail.com> wrote: > this is an ...
10 years, 10 months ago (2013-06-03 14:10:36 UTC) #5
brainman
Regardless what we decide, please add tests, so we all agree on how it is ...
10 years, 10 months ago (2013-06-07 05:17:10 UTC) #6
peterGo
On 2013/06/07 05:17:10, brainman wrote: > Regardless what we decide, please add tests, so we ...
10 years, 10 months ago (2013-06-08 11:14:43 UTC) #7
peterGo
Alex, Brad is way, way ahead of you! On 2013/06/02 15:40:12, bradfitz wrote: > where's ...
10 years, 10 months ago (2013-06-08 11:20:35 UTC) #8
bradfitz
Q=wait
10 years, 10 months ago (2013-06-26 15:28:29 UTC) #9
gobot
Replacing golang-dev with golang-codereviews.
10 years, 4 months ago (2013-12-20 16:11:03 UTC) #10
bradfitz
Alex, do we care to fix this for Go 1.3?
10 years, 3 months ago (2014-01-16 19:36:15 UTC) #11
brainman
On 2014/01/16 19:36:15, bradfitz wrote: > Alex, do we care to fix this for Go ...
10 years, 3 months ago (2014-01-17 03:10:43 UTC) #12
bradfitz
10 years, 3 months ago (2014-01-17 17:40:14 UTC) #13
R=close
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b