Yuguie$B$G$9!#e(B
stdout, stderre$B$Ne(Bexternal
encodinge$B$,e(Bnile$B$J$N$O$3$&$$$&$b$N$G$7$?$C$1e(B?
default_externale$B$r4|BT$7$F$^$7$?!#e(B
e$B$=$l$+$i!“e(B-Eext:inte$B$7$?$H$-$K$O>/$J$/$H$be(Binternal_encodinge$B$KH?1G$5$l$?J}e(B
e$B$,;H$$$d$9$$$H;W$&$N$G$9$,!”$$$+$,$G$7$g$&$+!#e(B
% cat test.rb
p [STDIN, STDOUT, STDERR].map{|io|
[io.external_encoding, io.internal_encoding]
}
% ruby-trunk -v test.rb
ruby 1.9.1 (2008-12-22 p-5000 trunk-r20912) [i386-darwin9.6.0]
[[#Encoding:UTF-8, nil], [nil, nil], [nil, nil]]
% ruby-trunk -vEcp932 test.rb
ruby 1.9.1 (2008-12-22 p-5000 trunk-r20912) [i386-darwin9.6.0]
[[#Encoding:Windows-31J, nil], [nil, nil], [nil, nil]]
% ruby-trunk -vE:euc-jp test.rb
ruby 1.9.1 (2008-12-22 p-5000 trunk-r20912) [i386-darwin9.6.0]
[[#Encoding:UTF-8, nil], [nil, nil], [nil, nil]]
% ruby-trunk -vEcp932:euc-jp test.rb
ruby 1.9.1 (2008-12-22 p-5000 trunk-r20912) [i386-darwin9.6.0]
[[#Encoding:Windows-31J, nil], [nil, nil], [nil, nil]]