rubygems/rubygems — pull request #229 by ryenus (2011-12-12 15:48:30+00:00)
Title: fix garbled Gem.user_home on Windows with ruby 1.9

In `Gem.find_home`, with Ruby 1.9, even if it's on Windows, it still tries to return `File.expand_path '~'`.

This is wrong, the consequence is, in JRuby 1.9 mode, `jruby --1.9 -e 'puts Gem.user_home'` prints garbled result, like `C:/C:â‚©Usersâ‚©xxx`,

see JRuby bug [JRUBY-6267] (https://jira.codehaus.org/browse/JRUBY-6267)