Project

General

Profile

Backport #1863

Dir.tmpdir warning on Windows

Added by djberg96 (Daniel Berger) almost 10 years ago. Updated about 8 years ago.

Status:
Rejected
Priority:
Normal
[ruby-core:24694]

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

History

#1

Updated by usa (Usaku NAKAMURA) almost 10 years ago

  • Assignee set to usa (Usaku NAKAMURA)
  • Priority changed from Normal to 3

=begin

=end

#2

Updated by mame (Yusuke Endoh) over 9 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

#3

Updated by wanabe (_ wanabe) over 9 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

#4

Updated by yugui (Yuki Sonoda) about 9 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

Also available in: Atom PDF