Project

General

Profile

Actions

Bug #3239

closed

ext/tk on cygwin

Added by nobu (Nobuyoshi Nakada) about 14 years ago. Updated about 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
1.9.2,1.8.8
Backport:
[ruby-dev:41134]

Description

=begin
なかだです。

cygdrive-prefixは変更可能なので、ドライブレターを正しく認識しな
い場合があります。

私は実際に変えています。


diff --git i/ext/tk/extconf.rb w/ext/tk/extconf.rb
index 676c132..a8adac2 100644
--- i/ext/tk/extconf.rb
+++ w/ext/tk/extconf.rb
@@ -112,5 +112,6 @@ def win_drive
case(RUBY_PLATFORM)
when /cygwin/

  • ["/cygdrive/#{drive}", "/cygdrive/[A-Za-z]"]
  • cygdrive = mount --show-cygdrive-prefix.chomp
  • ["#{cygdrive}/#{drive}", "#{Regexp.quote(cygdrive)}/[A-Za-z]"]
    else
    ["#{drive}:", "[A-Za-z]:"]

--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
中田 伸悦
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0