mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
merges r30084 from trunk into ruby_1_9_2.
-- * ruby.c (load_file_internal): decrement for ungotten line. [ruby-dev:42680] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
91c7169daf
commit
9afa601a90
4 changed files with 13 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
Sun Dec 5 11:27:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ruby.c (load_file_internal): decrement for ungotten line.
|
||||
[ruby-dev:42680]
|
||||
|
||||
Fri Dec 3 07:08:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/stringio/stringio.c (strio_getline): round upto next char
|
||||
|
|
|
|||
1
ruby.c
1
ruby.c
|
|
@ -1536,6 +1536,7 @@ load_file_internal(VALUE arg)
|
|||
rb_funcall(f, set_encoding, 1, rb_enc_from_encoding(enc));
|
||||
|
||||
if (opt->xflag) {
|
||||
line_start--;
|
||||
search_shebang:
|
||||
forbid_setid("-x");
|
||||
opt->xflag = FALSE;
|
||||
|
|
|
|||
|
|
@ -271,6 +271,12 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||
assert_equal("\"\u3042\"", r.join.force_encoding(Encoding::UTF_8))
|
||||
assert_equal([], e)
|
||||
end
|
||||
|
||||
bug4118 = '[ruby-dev:42680]'
|
||||
assert_in_out_err(%w[], "#!/bin/sh\n""#!shebang\n""#!ruby\n""puts __LINE__\n",
|
||||
%w[4], [], bug4118)
|
||||
assert_in_out_err(%w[-x], "#!/bin/sh\n""#!shebang\n""#!ruby\n""puts __LINE__\n",
|
||||
%w[4], [], bug4118)
|
||||
end
|
||||
|
||||
def test_sflag
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#define RUBY_VERSION "1.9.2"
|
||||
#define RUBY_PATCHLEVEL 114
|
||||
#define RUBY_PATCHLEVEL 115
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
#define RUBY_VERSION_MINOR 9
|
||||
#define RUBY_VERSION_TEENY 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue