From 38b8afcf5a4abfc5d8319bcb30a239668eccfb9f Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 2 Apr 2012 01:34:11 +0000 Subject: [PATCH] * string.c (rb_str_start_with, rb_str_end_with): raise an error if an argument is not convertible to a String. [ruby-core:40623][Bug #5536] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ string.c | 8 ++++---- test/ruby/test_string.rb | 22 ++++++++++++++++++---- 3 files changed, 28 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 845eb852b4..a97cf9b774 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Apr 2 10:34:00 2012 eregon + + * string.c (rb_str_start_with, rb_str_end_with): raise an error if + an argument is not convertible to a String. + [ruby-core:40623][Bug #5536] + Mon Apr 2 03:35:25 2012 NARUSE, Yui * lib/webrick/server.rb (WEBrick::GenericServer): close socket only if diff --git a/string.c b/string.c index e16b4291d8..079891a04a 100644 --- a/string.c +++ b/string.c @@ -7197,8 +7197,8 @@ rb_str_start_with(int argc, VALUE *argv, VALUE str) int i; for (i=0; i