Forum: Ruby-dev test_rubyoptions.rb

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
TAKANO Mitsuhiro (Guest)
on 2008-10-14 06:58
(Received via mailing list)
こんにちは
高野です。

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

リテラルの記述ミスかな?
TAKANO Mitsuhiro (Guest)
on 2008-10-14 07:15
(Received via mailing list)
$B9bLn$G$9!#(B

$B$"$i!"(BFail$B$9$k!#(Birb$B$G3NG'$7$?$N$G$9$,!&!&!&(B
$B$9$_$^$;$s!#(B

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

TAKANO Mitsuhiro $B$5$s$O=q$-$^$7$?(B:
Nobuyoshi N. (Guest)
on 2008-10-14 08:58
(Received via mailing list)
$B$J$+$@$G$9!#(B

At Tue, 14 Oct 2008 11:58:19 +0900,
TAKANO Mitsuhiro wrote in [ruby-dev:36718]:
> test/ruby/test_rubyoptions.rb $B$G(BFail$B$7$F$$$?$N$G$A$g$C$H8+$F$_$^$7$?!#(B
>
> $B%j%F%i%k$N5-=R%_%9$+$J!)(B

$B0JA0$O(B-K$B$H(B-E$B$rJ;MQ$G$-$?$s$G$9$,!"(Br19773$B$G%(%i!<$K$J$k$h$&$K$J$C(B
$B$?$?$a$G$9$M!#(B

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

$B$G$-$l$P%3%^%s%I%i%$%s%*%W%7%g%s$G(BRUBYOPT$B$r>e=q$-$G$-$F$[$7$$$s(B
$B$G$9$1$I!#(B
Yukihiro M. (Guest)
on 2008-10-14 16:18
(Received via mailing list)
$B$^$D$b$H(B $B$f$-$R$m$G$9(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:

|$B0JA0$O(B-K$B$H(B-E$B$rJ;MQ$G$-$?$s$G$9$,!"(Br19773$B$G%(%i!<$K$J$k$h$&$K$J$C(B
|$B$?$?$a$G$9$M!#(B
|
|$ ./ruby -Kn -Eutf-8 -ep
|./ruby: default_external already set to ASCII-8BIT (RuntimeError)

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

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

$B0JA0$+$i(BRUBYOPT$B$G$O(B-E$B$,;XDj$G$-$^$;$s$7!"2>$K%(%s%3!<%G%#%s(B
$B%0$,;XDj$G$-$?$H$7$F$bL5;k$5$l$k$h$&$J%3!<%I$K$J$C$F$^$9!#(B
-U$B$b6X;_$7$H$+$J$$$H$$$1$^$;$s$M!#(B
Nobuyoshi N. (Guest)
on 2008-10-14 16:39
(Received via mailing list)
$B$J$+$@$G$9!#(B

At Tue, 14 Oct 2008 21:17:54 +0900,
Yukihiro M. wrote in [ruby-dev:36727]:
>
> $B0JA0$+$i(BRUBYOPT$B$G$O(B-E$B$,;XDj$G$-$^$;$s$7!"2>$K%(%s%3!<%G%#%s(B
> $B%0$,;XDj$G$-$?$H$7$F$bL5;k$5$l$k$h$&$J%3!<%I$K$J$C$F$^$9!#(B
> -U$B$b6X;_$7$H$+$J$$$H$$$1$^$;$s$M!#(B

-E$B$b;XDj$G$-$^$9$7!"M-8z$K$J$C$F$^$9!#(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>

$B;XDj$G$-$J$$$N$O(B-U$B$@$1$G$9!#(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)

$B$G$-$J$/$J$C$?$N$O(B-K$B$d(B-E$B$NF1;~;XDj$@$1$G$9$M!#$H$$$&$3$H$G!"(B-U$B$b(B
RUBYOPT$B$K;XDj$G$-$F$b$$$$$N$G$O$J$$$+$H$O;W$$$^$9$,!"8=>u$GBg$-(B
$B$JITK~$O$"$j$^$;$s!#$b$A$m$s%F%9%H$rD>$9I,MW$O$"$k$G$7$g$&$,!#(B
This topic is locked and can not be replied to.