diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-03 01:47:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-03 01:47:19 +0000 |
commit | 3c4ea390c48cbb1d942996feb6a2b012435e1114 (patch) | |
tree | bbcd8e099871aada7025d3127d0df128882cf9bd /string.c | |
parent | d9b6c6ed7a2208a4cf3c60f731e998d6a1cb0356 (diff) | |
download | ruby-3c4ea390c48cbb1d942996feb6a2b012435e1114.tar.gz |
string.c: fix for non-Unicode encodings
* string.c (rb_str_enumerate_grapheme_clusters): should enumerate
chars for non-Unicode encodings. [Feature #13780]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8093,7 +8093,7 @@ rb_str_enumerate_grapheme_clusters(VALUE str, int wantarray) VALUE MAYBE_UNUSED(ary); if (!unicode_p) { - return rb_str_enumerate_codepoints(str, wantarray); + return rb_str_enumerate_chars(str, wantarray); } /* synchronize */ |