Bug #3077
closed`expand_path': couldn't find HOME environment on Windows
Description
=begin
1.9.2dev didn't set HOME environment on Windows.
C:\Ruby19\bin>ruby -ve 'p ENV["HOME"]'
ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mingw32]
"C:/Documents and Settings/Compaq_Owner"
C:\work\snapshot>ruby -ve 'p ENV["HOME"]'
ruby 1.9.2dev (2010-04-02 trunk 27160) [i386-mswin32_90]
nil
C:\work\snapshot>ruby -ve 'p File.expand_path("~")'
ruby 1.9.2dev (2010-04-02 trunk 27160) [i386-mswin32_90]
-e:1:in expand_path': couldn't find HOME environment -- expanding
~' (Argument
Error)
from -e:1:in `'
As a result, The nightly snapshot unable to build RDoc.
Generating RDoc documentation
.\ruby.exe -I./lib -I".ext/i386-mswin32_90" "./tool/runruby.rb" --extout
=".ext" -- "./bin/rdoc" --all --ri --op ".ext/rdoc" "."
C:/work/snapshot/lib/rdoc/ri/paths.rb:16:in expand_path': couldn't find HOME en vironment -- expanding
~' (ArgumentError)
from C:/work/snapshot/lib/rdoc/ri/paths.rb:16:in <module:Paths>' from C:/work/snapshot/lib/rdoc/ri/paths.rb:6:in
<top (required)>'
from C:/work/snapshot/lib/rdoc/options.rb:3:in require' from C:/work/snapshot/lib/rdoc/options.rb:3:in
<top (required)>'
from C:/work/snapshot/lib/rdoc/rdoc.rb:12:in require' from C:/work/snapshot/lib/rdoc/rdoc.rb:12:in
<top (required)>'
from ./bin/rdoc:11:in require' from ./bin/rdoc:11:in
'
NMAKE : fatal error U1077: '.\ruby.exe' : '0x1' 반환 코드입니다.
Stop.
=end