Backport #1863
closed
Dir.tmpdir warning on Windows
Added by djberg96 (Daniel Berger) almost 15 years ago.
Updated about 13 years ago.
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
- Assignee set to usa (Usaku NAKAMURA)
- Priority changed from Normal to 3
- 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
=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
- 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
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0