Backport #1863
closedDir.tmpdir warning on Windows
Description
=begin
Windows Vista Home Premium
Dir.tmpdir emits a warning. Please fix:
Warning:c:/ruby19/lib/ruby/1.9.1/tmpdir.rb:14: Win32API is deprecated after Ruby 1.9.1; use dl directly instead
=end
Updated by usa (Usaku NAKAMURA) over 14 years ago
- Assignee set to usa (Usaku NAKAMURA)
- Priority changed from Normal to 3
=begin
=end
Updated by mame (Yusuke Endoh) about 14 years ago
- Status changed from Open to Feedback
=begin
Hi,
I guess this was already fixed at r26952 but I cannot confirm.
Could you (or anyone) check on windows?
--
Yusuke Endoh mame@tsg.ne.jp
=end
Updated by wanabe (_ wanabe) about 14 years ago
=begin
I guess this was already fixed at r26952 but I cannot confirm.
Yes, you are right.
$ ./ruby -v -I ../lib/ -I .ext/ -I .ext/common/ -rtmpdir -e 'p Dir.tmpdir'
ruby 1.9.2dev (2010-03-16 trunk 26952) [i386-mingw32]
"C:/Users/HOME/AppData/Local/Temp"
$ cd ../../r26951/out/
$ ./ruby -v -I ../lib/ -I .ext/ -I .ext/common/ -rtmpdir -e 'p Dir.tmpdir'
ruby 1.9.2dev (2010-03-16 trunk 26951) [i386-mingw32]
Warning:e:/home/ruby/trunk/r26951/lib/tmpdir.rb:15: Win32API is deprecated after
Ruby 1.9.1; use dl directly instead
"C:/Users/HOME/AppData/Local/Temp"
=end
Updated by yugui (Yuki Sonoda) almost 14 years ago
- Status changed from Feedback to Rejected
=begin
r26952 is too large to merge into 1.9.1. And I don't want to change 1.9.1 just for suppress a warning.
=end