Project

General

Profile

Backport #2477

String#split should be ASCII sensitive

Added by naruse (Yui NARUSE) over 9 years ago. Updated about 8 years ago.

Status:
Assigned
Priority:
Normal
[ruby-dev:39881]

Description

=begin
If r24544 is backported, r24934 is also worth backported.

Author: naruse naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Date: Tue Sep 15 05:27:29 2009 +0000

 Use rb_isspace for ASCII-incompatible strings.

 * string.c (rb_str_split_m): use rb_isspace when the string
   may be ASCII-incompatible.
   (rb_str_lstrip_bang): ditto.
   (rb_str_rstrip_bang): ditto.

=end


Related issues

Related to Ruby trunk - Feature #2093: String#stripの対象は\sか[:space:]かClosed09/13/2009Actions

Also available in: Atom PDF