[Bug #854] Rake::FileList#egrep が動かない


#1

Bug #854: Rake::FileList#egrep e$B$,F0$+$J$$e(B
http://redmine.ruby-lang.org/issues/show/854

e$B5/I<<Te(B: okkez _
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal

e$B0J2<$N$h$&$Je(B Rakefile e$B$r:n$C$Fe(B Ruby1.9.1 preview2
e$B$GF0$+$9$HF0$-$^$;$s!#e(B

Rakefile

coding: utf-8

desc aaa
task :a do
p FileList[*.rb].egrep(/require/)
end

e$B%+%l%s%H%G%#%l%/%H%j$Ke(B SJIS
e$B$G=q$+$l$?%U%!%$%k$,B8:_$9$k>l9g$K$3$1$^$7$?!#e(B


#2

Yuguie$B$G$9!#e(B

okkez _ e$B$5$s$O=q$-$^$7$?e(B:

e$B0J2<$N$h$&$Je(B Rakefile e$B$r:n$C$Fe(B Ruby1.9.1 preview2 e$B$GF0$+$9$HF0$-$^$;$s!#e(B

Rakefile

coding: utf-8

desc aaa
task :a do
p FileList[*.rb].egrep(/require/)
end

e$B%+%l%s%H%G%#%l%/%H%j$Ke(B SJIS e$B$G=q$+$l$?%U%!%$%k$,B8:_$9$k>l9g$K$3$1$^$7$?!#e(B

e$B$3$l!"e(B
e$B!!e(B*.rbe$B$re(Bexternal_encodinge$B;XDjL5$7$G3+$$$Fe(Beach_linee$B$7$F!"e(B
e$B!!3F9T$KBP$7$Fe(B/require/.match(line) e$B$7$F!e(B
e$B!!%^%C%A$7$?$i$=$N9T$r=PNO!$H$$$&$3$H$r$d$C$F$$$F!"e(B
e$BESCf$Ge(Bdefault_externale$B$H$7$F2u$l$F$$$k9Te(B(cp932e$BJ8;zNs%j%F%i%ke(B)e$B$K=P2q$C$Fe(B

e$B$=$l$Ge(BArgumentError(invalid byte sequence in
UTF-8)e$B$K$J$C$F$^$9!#e(B

e$B2u$l$F$$$kJ8;zNs$H$N%^%C%A$GNc30$H$$$&$N$O$=$l$J$j$Ke(Breasonablee$B$@$H;W$C$Fe(B
e$B$$$?$s$G$9$,!"$3$N%1!<%9$O3N$+$K2?$+:$$j$=$&$G$9!#e(B*.rbe$B$J$i$^$@$7$be(Bmagic
commente$B$rFI$a$H$b8@$($^$9$,!e(B*.txte$B$N>l9g$@$C$F$$k$o$1$G$9!#e(B

e$B$3$l$NBP1~:v$H$7$F$O%(%s%3!<%G%#%s%0$,ITL@$J$ie(BASCII-8BITe$B$G3+$1!"$H$$$&$3e(B
e$B$H$K$J$j$^$9$G$7$g$&$+!#e(B