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

ruby-changes:46839

From: duerst <ko1@a...>
Date: Mon, 29 May 2017 17:41:28 +0900 (JST)
Subject: [ruby-changes:46839] duerst:r58954 (trunk): Change max byte length of UTF-8 to 4 bytes

duerst	2017-05-29 17:41:23 +0900 (Mon, 29 May 2017)

  New Revision: 58954

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

  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.

  Modified files:
    trunk/enc/utf_8.c
Index: enc/utf_8.c
===================================================================
--- enc/utf_8.c	(revision 58953)
+++ enc/utf_8.c	(revision 58954)
@@ -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/

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