diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-12 15:29:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-12 15:29:55 +0000 |
commit | 33f124d1a0fa18b7363b2f89f7f5c564807aa4f8 (patch) | |
tree | 16892d1c6f437a5a29ddf34f9e1f3b8aeae19bd8 /string.c | |
parent | 55a99714d24e160c3c86f4ddf0a7f815a39d2c38 (diff) | |
download | ruby-33f124d1a0fa18b7363b2f89f7f5c564807aa4f8.tar.gz |
string.c: remove bare Unicode.
* string.c (rb_str_unicode_normalize): remove bare Unicode. do
not assume that all compilers can handle UTF-8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -9620,9 +9620,9 @@ unicode_normalize_common(int argc, VALUE *argv, VALUE str, ID id) * Anything other than UTF-8 is implemented by converting to UTF-8, * which makes it slower than UTF-8. * - * "a\u0300".unicode_normalize #=> 'à' (same as "\u00E0") - * "a\u0300".unicode_normalize(:nfc) #=> 'à' (same as "\u00E0") - * "\u00E0".unicode_normalize(:nfd) #=> 'à' (same as "a\u0300") + * "a\u0300".unicode_normalize #=> "\u00E0" + * "a\u0300".unicode_normalize(:nfc) #=> "\u00E0" + * "\u00E0".unicode_normalize(:nfd) #=> "a\u0300" * "\xE0".force_encoding('ISO-8859-1').unicode_normalize(:nfd) * #=> Encoding::CompatibilityError raised */ |