-r時のdefault_external


#1

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

[Bug
#1111]e$B$rD>$7$F$$$F5$$E$$$?$N$G$9$,!"e(Bshebange$B$Ge(Bdefault_external
e$B$r;XDj$7$?>l9g!8=>u!$=$l$,e(B-re$B$KH?1G$5$l$^$;$s!#e(B

% cat foo.rb
#! ruby -Eutf-8
p Encoding.default_external

% LANG=C ruby -r./foo foo.rb
#Encoding:US-ASCII
#Encoding:UTF-8

e$B$3$l$O$J$s$H$J$/$h$m$7$/$J$$$h$&$J5$$,$9$k$N$G$9$,!e(B-re$BB&$K$be(B
e$BH?1G$5$l$k$h$&$K=$@5$9$kI,MW$O$$k$G$7$g$&$+e(B?

e$B$=$l$G$O!#e(B


#2

e$B@.@%$G$9!#e(B

U.Nakamura wrote:

e$B$3$l$O$J$s$H$J$/$h$m$7$/$J$$$h$&$J5$$,$9$k$N$G$9$,!e(B-re$BB&$K$be(B
e$BH?1G$5$l$k$h$&$K=$@5$9$kI,MW$O$$k$G$7$g$&$+e(B?

e$B$^$:$$$h$&$J5$$O$7$^$9$h$M$!#e(B