[Ruby 1.9-Bug#3907][Open] WIN32OLE_TYPELIB Can't load while envvar in the pathname

Bug #3907: WIN32OLE_TYPELIB Can’t load while envvar in the pathname .
http://redmine.ruby-lang.org/issues/show/3907

起票者: Akio T.
ステータス: Open, 優先度: Normal
カテゴリ: ext, Target version: 1.9.3
ruby -v: ruby 1.9.3dev (2010-10-05) [i386-mswin32_100]

WIN32OLE_TYPELIB.newで、TypeLibのパス名に環境変数が含まれているとロードに失敗します。
以下のパッチで

$B=uED$G$9!#(B

On Tue, Oct 05, 2010 at 11:16:07PM +0900, Akio T. wrote:

$B$?$@$7!"(BADO 2.0$B$O(BWindows7$B$G$O(BREG_EXPAND_SZ$B$r;H$C$F$$$^$9$,!"(B
Windows XP$B$G$O;H$C$F$$$J$$$?$a%F%9%H$H$7$F$O$$$^$$$A$G$9!#(B

$BH?1~F_$/$F$9$$$^$;$s!#(B

$B%Q%C%A$N$4Ds6!$"$j$,$H$&$4$6$$$^$9!#(B
$B$3$l!"(B"Disk Management Snap-In Object Library" $B$@$C$?$i!"(B
Windows 7 $B$G$b(B REG_EXPAND_SZ $B$r;H$C$F$^$9$+!)(B
$B$H$$$&$+(B Windows 7 $B$K$b$=$s$J$N$,$"$j$^$9$+!)(B

$B=uED(B $B2m5*(B

arton$B$G$9!#(B

$B$9$_$^$;$s!#A0$N%a!<%k$G$O4V0c$($F(BCLSID$B$N$[$&$r8+$F$$$^$7$?$,(B
$B!J(Binprocsvr32$B$H$+=q$$$F$$$k!K!“(BTypeLib$B$N$[$&$b!”(BREG_EXPAND_SZ$B$r;H$C$F$$(B
$B$k$N$GLdBj$J$$$G$9!#(B


arton [email protected]

arton$B$G$9!#(B

$B$3$l!“(B"Disk Management Snap-In Object Library” $B$@$C$?$i!“(B
Windows 7 $B$G$b(B REG_EXPAND_SZ $B$r;H$C$F$^$9$+!)(B
$B$H$$$&$+(B Windows 7 $B$K$b$=$s$J$N$,$”$j$^$9$+!)(B
Windows7$B$K$b$“$j$^$7$?!#(B
InProcServer32$B$O!”(BREG_EXPAND_SZ$B$r;H$C$F(B
%SystemRoot%…$B$H$J$C$F$$$k$N$G!“(B
XP$B$G$b$=$&$J$C$F$$$k$N$G$”$l$P!"%F%9%HMQ$KNI$$$H;W$$$^$9!#(B


arton [email protected]

$B%A%1%C%H(B #3907 $B$,99?7$5$l$^$7$?!#(B (by Masaki S.)

$B%9%F!<%?%9(B Open$B$+$i(BClosed$B$KJQ99(B
$B?JD=(B % 0$B$+$i(B100$B$KJQ99(B

This issue was solved with changeset r29495.
Akio, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.