summaryrefslogtreecommitdiff
path: root/sys/src/9
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-03-10 20:02:36 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-03-10 20:02:36 +0100
commit0276031c011d28f182492ebbee34df35b005b4f9 (patch)
tree9836e7f3063dc44790c3b5ff954d2813fd2ec620 /sys/src/9
parent3e52ada202e1e3d27c532921bd38934ec0db1b74 (diff)
make kernel UTFmax and Runemax consistent with libc (21-bit runes) (thanks maurice)
Diffstat (limited to 'sys/src/9')
-rw-r--r--sys/src/9/port/lib.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/9/port/lib.h b/sys/src/9/port/lib.h
index 1dbccbcc5..7d58fed9d 100644
--- a/sys/src/9/port/lib.h
+++ b/sys/src/9/port/lib.h
@@ -35,11 +35,11 @@ extern int cistrncmp(char*, char*, int);
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 */
};
/*