]> Cypherpunks repositories - gostls13.git/commit
syscall: handle empty environment variable values properly on windows
authorAlex Brainman <alex.brainman@gmail.com>
Thu, 27 Jun 2013 00:11:30 +0000 (10:11 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Thu, 27 Jun 2013 00:11:30 +0000 (10:11 +1000)
commit04b405c7fc99008b3cf90f4c067e81001af2de29
tree7539fe6b2cf5148eb22055dc7f6ef2118f347c4b
parentd9f5c64f6e49bff22fce355961cd828624430da1
syscall: handle empty environment variable values properly on windows

Setenv("AN_ENV_VAR", "") deletes AN_ENV_VAR instead of setting it
to "" at this moment. Also Getenv("AN_ENV_VAR") returns "not found",
if AN_ENV_VAR is "". Change it, so they behave like unix.

Fixes #5610

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/10594043
src/pkg/syscall/env_windows.go
src/pkg/syscall/syscall_test.go [new file with mode: 0644]