ref: 9205bf1697a84d1fab6ab599865a2e1bab823909
parent: c274fe25a4e927e79c881d4a47f0dd4ea0c1e7aa
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Mar 10 15:02:36 EST 2016
make kernel UTFmax and Runemax consistent with libc (21-bit runes) (thanks maurice)
--- a/sys/src/9/port/lib.h
+++ b/sys/src/9/port/lib.h
@@ -35,11 +35,11 @@
enum
{- UTFmax = 3, /* maximum bytes per rune */
- Runesync = 0x80, /* cannot represent part of a UTF sequence */
- Runeself = 0x80, /* rune and UTF sequences are the same (<) */
+ UTFmax = 4, /* maximum bytes per rune */
+ Runesync = 0x80, /* cannot represent part of a UTF sequence */
+ Runeself = 0x80, /* rune and UTF sequences are the same (<) */
Runeerror = 0xFFFD, /* decoding error in UTF */
- Runemax = 0xFFFF, /* 16 bit rune */
+ Runemax = 0x10FFFF, /* 21 bit rune */
};
/*
--
⑨