require 'rubygems' fails for 64Bit Process
description
When attempting to require 'rubygems' from a 64bit process and error occurs saying that you cannot call the Win32API from a 64bit process.
Bug tracked down to $IRHOME\lib\ruby\site_ruby\1.8\rubygems\config_file.rb
File make explicit use of the Win32API. We replaced this with equivalent ruby code and it works fine. The call is used inside an ELSE block, the IF block above also uses Win32API explicitly for loading under ruby1.9. As we are not running 1.9 we did not modify this, however it will likely need to be fixed as well.
Attached is our patched file.