diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-16 22:21:09 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-16 22:21:09 +0000 |
commit | 19620465b77e41286695a1f2d7d9edc39c4bb4c2 (patch) | |
tree | cf4123a838c5d26dddcfe9204c7fb9d730533381 /test/ruby/test_rubyoptions.rb | |
parent | 3c6cf62cbb81b428acf61c5ee730344d9959042c (diff) | |
download | ruby-19620465b77e41286695a1f2d7d9edc39c4bb4c2.tar.gz ruby-19620465b77e41286695a1f2d7d9edc39c4bb4c2.tar.xz ruby-19620465b77e41286695a1f2d7d9edc39c4bb4c2.zip |
* ruby.c (proc_options): no warning when default_external already
set by -E.
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_rubyopt):
put -K after -E to set script encoding.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index af4ca282e..ebe6023b0 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -208,8 +208,8 @@ class TestRubyOptions < Test::Unit::TestCase ENV['RUBYOPT'] = '-T4' assert_in_out_err([], "", [], /no program input from stdin allowed in tainted mode \(SecurityError\)/) - ENV['RUBYOPT'] = '-KN -Eus-ascii' - assert_in_out_err(%w(-KU -Eutf-8), "p '\u3042'") do |r, e| + ENV['RUBYOPT'] = '-Eus-ascii -KN' + assert_in_out_err(%w(-Eutf-8 -KU), "p '\u3042'") do |r, e| assert_equal("\"\u3042\"", r.join.force_encoding(Encoding::UTF_8)) assert_equal([], e) end |