summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-29 08:41:23 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-29 08:41:23 +0000
commita03690ae73baf31280015318f377338599c60bc6 (patch)
treefa39f6e7fe8311d8c29ee915dc48781ca64798df
parent83ddb7c182e2cfdae77c62190e8be2a4cabe4718 (diff)
downloadruby-a03690ae73baf31280015318f377338599c60bc6.tar.gz
Change max byte length of UTF-8 to 4 bytes
In enc/utf_8.c, change maximum byte length of UTF-8 to 4 bytes (from 6) to conform to definition of UTF-8. This closes issue #13590. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--enc/utf_8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enc/utf_8.c b/enc/utf_8.c
index 3dad2f729b..cdf2510d84 100644
--- a/enc/utf_8.c
+++ b/enc/utf_8.c
@@ -417,7 +417,7 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
OnigEncodingDefine(utf_8, UTF_8) = {
mbc_enc_len,
"UTF-8", /* name */
- 6, /* max byte length */
+ 4, /* max byte length */
1, /* min byte length */
is_mbc_newline,
mbc_to_code,