From: Heesob Park Date: 2011-05-31T14:56:53+09:00 Subject: [ruby-core:36624] [Backport92 - Backport #4208] ENV.delete warns even if it succeeded on Windows. Issue #4208 has been updated by Heesob Park. It is reproducible on Windows XP. C:\>ver Microsoft Windows XP [Version 5.1.2600] C:\Ruby192\bin>ruby -ve "ENV['foo']='bar';ENV.delete('foo')" ruby 1.9.2p136 (2010-12-25) [i386-mingw32] -e:1: warning: failed to set environment variable. Ruby 1.9.3 will raise SystemCallError in this case. ---------------------------------------- Backport #4208: ENV.delete warns even if it succeeded on Windows. http://redmine.ruby-lang.org/issues/4208 Author: Heesob Park Status: Feedback Priority: Normal Assignee: Yuki Sonoda Category: core Target version: ruby -v: ruby 1.9.2p136 (2010-12-25 revision 30365) [i386-mswin32_90] =begin C:\work>ruby -ve "ENV['foo']='bar';ENV.delete('foo');p ENV['foo']" ruby 1.9.2p136 (2010-12-25 revision 30365) [i386-mswin32_90] -e:1: warning: failed to set environment variable. Ruby 1.9.3 will raise SystemCallError in this case. nil This bug is related with http://redmine.ruby-lang.org/issues/show/3825 =end -- http://redmine.ruby-lang.org