Permalink
Browse files

regen/unicode_constants.pl: Add U+10FFFF entry

We need the length of the UTF-8 for this code point elsewhere, and it
is different between ASCII and EBCDIC.
  • Loading branch information...
khwilliamson committed Nov 18, 2017
1 parent 7358a03 commit 566efd885319cacbde16a751c5a0754dcc8eca08
Showing with 8 additions and 0 deletions.
  1. +2 −0 regen/unicode_constants.pl
  2. +6 −0 unicode_constants.h
@@ -259,6 +259,8 @@ END
U+FFFD string
U+10FFFF string MAX_UNICODE
NBSP native
NBSP string
View
@@ -73,6 +73,8 @@ bytes.
# define REPLACEMENT_CHARACTER_UTF8 "\xEF\xBF\xBD" /* U+FFFD */
# define MAX_UNICODE_UTF8 "\xF4\x8F\xBF\xBF" /* U+10FFFF */
# define NBSP_NATIVE 0xA0 /* U+00A0 */
# define NBSP_UTF8 "\xC2\xA0" /* U+00A0 */
@@ -116,6 +118,8 @@ bytes.
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x73\x73\x71" /* U+FFFD */
# define MAX_UNICODE_UTF8 "\xEE\x42\x73\x73\x73" /* U+10FFFF */
# define NBSP_NATIVE 0x41 /* U+00A0 */
# define NBSP_UTF8 "\x80\x41" /* U+00A0 */
@@ -159,6 +163,8 @@ bytes.
# define REPLACEMENT_CHARACTER_UTF8 "\xDD\x72\x72\x70" /* U+FFFD */
# define MAX_UNICODE_UTF8 "\xEE\x42\x72\x72\x72" /* U+10FFFF */
# define NBSP_NATIVE 0x41 /* U+00A0 */
# define NBSP_UTF8 "\x78\x41" /* U+00A0 */

0 comments on commit 566efd8

Please sign in to comment.