Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os.Setenv does not update environment variables seen by C #1569

Closed
gopherbot opened this issue Mar 1, 2011 · 3 comments
Closed

os.Setenv does not update environment variables seen by C #1569

gopherbot opened this issue Mar 1, 2011 · 3 comments

Comments

@gopherbot
Copy link
Contributor

by salviati.gnu:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. Set a variable with os.Setenv
2. Try accessing it with libc's getenv
3.

What is the expected output?
See the new environment variable at C side.

What do you see instead?
That the newly assigned variable is not actually exported.

Which compiler are you using (5g, 6g, 8g, gccgo)?
8g

Which operating system are you using?
Arch Linux

Which revision are you using?  (hg identify)
8g version release.2011-02-24 7583

Please provide any additional information below.
@alberts
Copy link
Contributor

alberts commented Mar 2, 2011

@rsc
Copy link
Contributor

rsc commented Mar 2, 2011

Comment 2:

Fix needs to not make everything depend on cgo.

Status changed to Accepted.

@bradfitz
Copy link
Contributor

bradfitz commented May 2, 2011

Comment 4:

This issue was closed by revision 623e7de.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants