mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@19811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c2b9d34f62
commit
4709e330cf
3 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue