* hash.c (ruby_setenv): putenv on msvcrt.dll can't remove empty value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
63578c725c
commit
1e6a884a4f
@ -1,3 +1,7 @@
|
|||||||
|
Sun Apr 25 11:02:20 2010 wanabe <s.wanabe@gmail.com>
|
||||||
|
|
||||||
|
* hash.c (ruby_setenv): putenv on msvcrt.dll can't remove empty value.
|
||||||
|
|
||||||
Sat Apr 24 23:40:50 2010 Tanaka Akira <akr@fsij.org>
|
Sat Apr 24 23:40:50 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* lib/pp.rb: use [""].pack("p").size to detect the pointer size.
|
* lib/pp.rb: use [""].pack("p").size to detect the pointer size.
|
||||||
|
1
hash.c
1
hash.c
@ -2129,6 +2129,7 @@ ruby_setenv(const char *name, const char *value)
|
|||||||
buf = ALLOCA_N(char, len);
|
buf = ALLOCA_N(char, len);
|
||||||
snprintf(buf, len, "%s=", name);
|
snprintf(buf, len, "%s=", name);
|
||||||
putenv(buf);
|
putenv(buf);
|
||||||
|
SetEnvironmentVariable(name, 0);
|
||||||
}
|
}
|
||||||
#elif defined(HAVE_SETENV) && defined(HAVE_UNSETENV)
|
#elif defined(HAVE_SETENV) && defined(HAVE_UNSETENV)
|
||||||
#undef setenv
|
#undef setenv
|
||||||
|
Loading…
x
Reference in New Issue
Block a user