[Bug #1111] -E and -K on shbang


#1

Bug #1111: -E and -K on shbang
http://redmine.ruby-lang.org/issues/show/1111

e$B5/I<<Te(B: Usaku NAKAMURA
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: High
e$B%+%F%4%je(B: M17N, Target version: 1.9.x
ruby -v: ruby 1.9.2dev (2009-02-05 trunk 22074) [i386-netbsdelf]

shbange$B9T$Ne(B-Ee$B$de(B-Ke$B$,e(BEncoding.default_externale$B$K:nMQ$7$F$$$^$;$s!#e(B
e$B%W%i%C%H%U%)!<%`0MB8$J$7!"e(B1.9.1p0e$B$G$b:F8=$7$^$9!#e(B

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

% LANG= ruby aaa.rb
#Encoding:US-ASCII


#2

e$B%A%1%C%He(B #1111 e$B$,99?7$5$l$^$7$?!#e(B (by Usaku NAKAMURA)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r22085.

http://redmine.ruby-lang.org/issues/show/1111