Issue #3825 has been updated by Peter Weldon.


Knowing the value of GetLastError() after SetEnvironmentVariable() fails may give a clue. Can you try get that?

In VS, I would, add "$err,hr" to my watch window and put a break point at the fail: label in hash.c (setenv).
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3825

----------------------------------------
http://redmine.ruby-lang.org