[#41278] [BUG:1.9] BINARY should not be ASCII-compatible — Yugui <yugui@...>

WXVndWkbJEIkRyQ5ISMbKEIKCgo+IBskQiRHISIkKiQqJGAkTSQzJDMkXiRHJE41RE9AJEclKyVQ

15 messages 2010/05/11

[#41407] [Bug #3339] win32ole test failure — Usaku NAKAMURA <redmine@...>

Bug #3339: win32ole test failure

20 messages 2010/05/25
[#41411] Re: [Bug #3339] win32ole test failure — Masaki Suketa <masaki.suketa@...> 2010/05/25

助田です。

[#41412] Re: [Bug #3339] win32ole test failure — "U.Nakamura" <usa@...> 2010/05/25

こんにちは、なかむら(う)です。

[ruby-dev:41134] [Bug:trunk] ext/tk on cygwin

From: Nobuyoshi Nakada <nobu@...>
Date: 2010-05-03 05:21:56 UTC
List: ruby-dev #41134
なかだです。

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はできる。
    中田 伸悦

In This Thread

Prev Next