[前][次][番号順一覧][スレッド一覧]

ruby-changes:46850

From: duerst <ko1@a...>
Date: Tue, 30 May 2017 14:43:46 +0900 (JST)
Subject: [ruby-changes:46850] duerst:r58965 (trunk): Change max byte length of UTF-8 to 4 bytes

duerst	2017-05-30 14:43:41 +0900 (Tue, 30 May 2017)

  New Revision: 58965

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58965

  Log:
    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.)

  Modified files:
    trunk/enc/utf_8.c
Index: enc/utf_8.c
===================================================================
--- enc/utf_8.c	(revision 58964)
+++ enc/utf_8.c	(revision 58965)
@@ -417,7 +417,7 @@ get_case_fold_codes_by_str(OnigCaseFoldT https://github.com/ruby/ruby/blob/trunk/enc/utf_8.c#L417
 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,

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]