Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(174)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

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

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by peterGo
Modified:
11 years, 12 months ago
Visibility:
Public.
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/ #

Created: 12 years, 7 months ago
Download [raw] [tar.bz2]
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
Total messages: 13
|
peterGo
12 years, 7 months ago (2013年06月02日 15:31:53 UTC) #1
Sign in to reply to this message.
peterGo
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years, 7 months ago (2013年06月02日 15:33:23 UTC) #2
Hello golang-dev@googlegroups.com,
I'd like you to review this change to
https://code.google.com/p/go/ 
Sign in to reply to this message.
bradfitz
where's the new test? On Sun, Jun 2, 2013 at 8:33 AM, <go.peter.90@gmail.com> wrote: > ...
12 years, 7 months ago (2013年06月02日 15:40:12 UTC) #3
where's the new test?
On Sun, Jun 2, 2013 at 8:33 AM, <go.peter.90@gmail.com> wrote:
> Hello golang-dev@googlegroups.com,
>
> I'd like you to review this change to
> https://code.google.com/p/go/
>
>
>
https://codereview.appspot.**com/9945044/<https://codereview.appspot.com/9945...
>
> --
>
> ---You received this message because you are subscribed to the Google
> Groups "golang-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
golang-dev+unsubscribe@**googlegroups.com<golang-dev%2Bunsubscribe@googlegrou...
> .
> For more options, visit
https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/o...
> .
>
>
>
Sign in to reply to this message.
minux1
this is an API change, and as i'm not convinced the old behavior is wrong, ...
12 years, 7 months ago (2013年06月02日 23:29:42 UTC) #4
this is an API change, and as i'm not convinced the old behavior is
wrong, i think we'd better introduce a Setenv2 for windows, and make
the os package use the new API (we should also clarify in the os.Setenv
documentation).
another way to fix the problem is just ignore the error in os.Setenv when
trying to remove a nonexistent environment variable.
Sign in to reply to this message.
bradfitz
On Sun, Jun 2, 2013 at 4:29 PM, minux <minux.ma@gmail.com> wrote: > this is an ...
12 years, 7 months ago (2013年06月03日 14:10:36 UTC) #5
On Sun, Jun 2, 2013 at 4:29 PM, minux <minux.ma@gmail.com> wrote:
> this is an API change, and as i'm not convinced the old behavior is
> wrong, i think we'd better introduce a Setenv2 for windows, and make
> the os package use the new API (we should also clarify in the os.Setenv
> documentation).
>
I agree.
It's a minor one (an undocumented pkg syscall func), but people might be
relying on it.
Sign in to reply to this message.
brainman
Regardless what we decide, please add tests, so we all agree on how it is ...
12 years, 7 months ago (2013年06月07日 05:17:10 UTC) #6
Regardless what we decide, please add tests, so we all agree on how it is
suppose to work. Thank you.
Alex
Sign in to reply to this message.
peterGo
On 2013年06月07日 05:17:10, brainman wrote: > Regardless what we decide, please add tests, so we ...
12 years, 7 months ago (2013年06月08日 11:14:43 UTC) #7
On 2013年06月07日 05:17:10, brainman wrote:
> Regardless what we decide, please add tests, so we all agree on how it is
> suppose to work. Thank you.
> 
> Alex
Sign in to reply to this message.
peterGo
Alex, Brad is way, way ahead of you! On 2013年06月02日 15:40:12, bradfitz wrote: > where's ...
12 years, 7 months ago (2013年06月08日 11:20:35 UTC) #8
Alex,
Brad is way, way ahead of you!
On 2013年06月02日 15:40:12, bradfitz wrote:
> where's the new test?
As Brad requested, I wrote tests for the patch and tested the tests. This
uncovered another bug. I've patched that bug too and I'm now writing and testing
tests for it.
Peter
On 2013年06月07日 05:17:10, brainman wrote:
> Regardless what we decide, please add tests, so we all agree on how it is
> suppose to work. Thank you.
> 
> Alex
Sign in to reply to this message.
bradfitz
Q=wait
12 years, 6 months ago (2013年06月26日 15:28:29 UTC) #9
Q=wait
Sign in to reply to this message.
gobot
Replacing golang-dev with golang-codereviews.
12 years ago (2013年12月20日 16:11:03 UTC) #10
Replacing golang-dev with golang-codereviews.
Sign in to reply to this message.
bradfitz
Alex, do we care to fix this for Go 1.3?
11 years, 12 months ago (2014年01月16日 19:36:15 UTC) #11
Alex, do we care to fix this for Go 1.3?
Sign in to reply to this message.
brainman
On 2014年01月16日 19:36:15, bradfitz wrote: > Alex, do we care to fix this for Go ...
11 years, 12 months ago (2014年01月17日 03:10:43 UTC) #12
On 2014年01月16日 19:36:15, bradfitz wrote:
> Alex, do we care to fix this for Go 1.3?
But, 5610 is closed by https://codereview.appspot.com/10594043. And that is part
of Go 1.2 already.
Alex
Sign in to reply to this message.
bradfitz
R=close
11 years, 12 months ago (2014年01月17日 17:40:14 UTC) #13
R=close
Sign in to reply to this message.
|
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /