Test_rubyoptions.rb


#1

こんにちは
高野です。

test/ruby/test_rubyoptions.rb でFailしていたのでちょっと見てみました。

リテラルの記述ミスかな?


#2

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

e$B$"$i!"e(BFaile$B$9$k!#e(Birbe$B$G3NG’$7$?$N$G$9$,!&!&!&e(B
e$B$9$_$^$;$s!#e(B

assert_in_out_erre$B$NM}2r$,ITB-$7$F$$$k$h$&$G$9!#$G$J$*$7$F$-$^$9!#e(B

TAKANO Mitsuhiro e$B$5$s$O=q$-$^$7$?e(B:


#3

e$B$J$+$@$G$9!#e(B

At Tue, 14 Oct 2008 11:58:19 +0900,
TAKANO Mitsuhiro wrote in [ruby-dev:36718]:

test/ruby/test_rubyoptions.rb e$B$Ge(BFaile$B$7$F$$$?$N$G$A$g$C$H8+$F$_$^$7$?!#e(B

e$B%j%F%i%k$N5-=R%_%9$+$J!)e(B

e$B0JA0$Oe(B-Ke$B$He(B-Ee$B$rJ;MQ$G$-$?$s$G$9$,!"e(Br19773e$B$G%(%i!<$K$J$k$h$&$K$J$Ce(B
e$B$?$?$a$G$9$M!#e(B

$ ./ruby -Kn -Eutf-8 -ep
./ruby: default_external already set to ASCII-8BIT (RuntimeError)

e$B$G$-$l$P%3%^%s%I%i%$%s%*%W%7%g%s$Ge(BRUBYOPTe$B$r>e=q$-$G$-$F$[$7$$$se(B
e$B$G$9$1$I!#e(B


#4

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:36720] Re: test_rubyoptions.rb”
on Tue, 14 Oct 2008 13:58:08 +0900, Nobuyoshi N.
removed_email_address@domain.invalid writes:

|e$B0JA0$Oe(B-Ke$B$He(B-Ee$B$rJ;MQ$G$-$?$s$G$9$,!"e(Br19773e$B$G%(%i!<$K$J$k$h$&$K$J$Ce(B
|e$B$?$?$a$G$9$M!#e(B
|
|$ ./ruby -Kn -Eutf-8 -ep
|./ruby: default_external already set to ASCII-8BIT (RuntimeError)

e$B$G$-$?J}$,NI$$$G$9$+!)e(B

|e$B$G$-$l$P%3%^%s%I%i%$%s%*%W%7%g%s$Ge(BRUBYOPTe$B$r>e=q$-$G$-$F$[$7$$$se(B
|e$B$G$9$1$I!#e(B

e$B0JA0$+$ie(BRUBYOPTe$B$G$Oe(B-Ee$B$,;XDj$G$-$^$;$s$7!"2>$K%(%s%3!<%G%#%se(B
e$B%0$,;XDj$G$-$?$H$7$F$bL5;k$5$l$k$h$&$J%3!<%I$K$J$C$F$^$9!#e(B
-Ue$B$b6X;_$7$H$+$J$$$H$$$1$^$;$s$M!#e(B


#5

e$B$J$+$@$G$9!#e(B

At Tue, 14 Oct 2008 21:17:54 +0900,
Yukihiro M. wrote in [ruby-dev:36727]:

e$B0JA0$+$ie(BRUBYOPTe$B$G$Oe(B-Ee$B$,;XDj$G$-$^$;$s$7!"2>$K%(%s%3!<%G%#%se(B
e$B%0$,;XDj$G$-$?$H$7$F$bL5;k$5$l$k$h$&$J%3!<%I$K$J$C$F$^$9!#e(B
-Ue$B$b6X;_$7$H$+$J$$$H$$$1$^$;$s$M!#e(B

-Ee$B$b;XDj$G$-$^$9$7!"M-8z$K$J$C$F$^$9!#e(B

$ RUBYOPT=’-Eeuc-jp’ ./ruby -v -e ‘p Encoding.default_external’
ruby 1.9.0 (2008-10-14 revision 19781) [i686-linux]
#Encoding:EUC-JP

$ RUBYOPT=’-Eeuc-jp’ ./ruby -v -Eutf-8 -e ‘p Encoding.default_external’
ruby 1.9.0 (2008-10-14 revision 19781) [i686-linux]
#Encoding:UTF-8

e$B;XDj$G$-$J$$$N$Oe(B-Ue$B$@$1$G$9!#e(B

$ RUBYOPT=’-U’ ./ruby -v -e ‘p Encoding.default_external’
ruby 1.9.0 (2008-10-14 revision 19781) [i686-linux]
./ruby: invalid switch in RUBYOPT: -U (RuntimeError)

e$B$G$-$J$/$J$C$?$N$Oe(B-Ke$B$de(B-Ee$B$NF1;~;XDj$@$1$G$9$M!#$H$$$&$3$H$G!“e(B-Ue$B$be(B
RUBYOPTe$B$K;XDj$G$-$F$b$$$$$N$G$O$J$$$+$H$O;W$$$^$9$,!“8=>u$GBg$-e(B
e$B$JITK~$O$”$j$^$;$s!#$b$A$m$s%F%9%H$rD>$9I,MW$O$”$k$G$7$g$&$,!#e(B