diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-04 12:29:44 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-04 12:29:44 +0000 |
| commit | 5c34f89dfb2e051f49d98be460cb31f9a94de807 (patch) | |
| tree | e64125bea2f63555d1d9f1827199b494e1213186 /string.c | |
| parent | f8c7140aecec1b5581da73c9022934a04b77d641 (diff) | |
| download | ruby-5c34f89dfb2e051f49d98be460cb31f9a94de807.tar.gz ruby-5c34f89dfb2e051f49d98be460cb31f9a94de807.tar.xz ruby-5c34f89dfb2e051f49d98be460cb31f9a94de807.zip | |
merges r23155 and r23158 from trunk into ruby_1_9_1.
--
* string.c (rb_str_chop_bang): reset coderange. [ruby-core:23155]
--
* test/ruby/test_string.rb (test_chop, test_chop!): tests for [ruby-core:23155].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5811,7 +5811,7 @@ rb_str_chop_bang(VALUE str) { if (RSTRING_LEN(str) > 0) { long len; - str_modify_keep_cr(str); + rb_str_modify(str); len = chopped_length(str); STR_SET_LEN(str, len); RSTRING_PTR(str)[len] = '\0'; |
