mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
ab3a40c103
commit
11954049fa
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue