summaryrefslogtreecommitdiff
path: root/enc
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-30 05:43:41 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-30 05:43:41 +0000
commit11954049fa5604703fe2fca7e3a299f27ec4abda (patch)
tree426e2366f0e8e2536f13b8c8ceca84a52440f4dc /enc
parentab3a40c1031ff3a0535f6bcf26de40de37dbb1db (diff)
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. (This is a retry of r58954, after issue #13590 has been addressed.) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc')
-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 3dad2f7..cdf2510 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,