diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-04 13:27:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-04 13:27:36 +0000 |
commit | 6b327e72c38ebfefe62221fa658ce2fbbed24f51 (patch) | |
tree | 71be86a0a626a331d7e3138f852a01f354b48e4f /test/ruby | |
parent | d04ee29e77891f1981dbf4d5a1d2c27a626fb52c (diff) | |
download | ruby-6b327e72c38ebfefe62221fa658ce2fbbed24f51.tar.gz |
ruby.c: warn_cr_in_shebang
* ruby.c (load_file_internal): warn if shebang line ends with a
carriage return.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 1bd005440d..012deebae7 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -313,7 +313,7 @@ class TestRubyOptions < Test::Unit::TestCase [], /: no Ruby script found in input/) assert_in_out_err([{'RUBYOPT' => nil}], "#!ruby -KU -Eutf-8\r\np \"\u3042\"\r\n", - ["\"\u3042\""], [], + ["\"\u3042\""], /shebang line ends with \\r/, encoding: Encoding::UTF_8) bug4118 = '[ruby-dev:42680]' |