--- /sys/include/ape/utf.h Mon Apr 1 00:00:00 2013 +++ /sys/include/ape/utf.h Mon Apr 1 00:00:00 2013 @@ -11,11 +11,11 @@ enum { - UTFmax = 3, /* maximum bytes per rune */ + 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, /* 32 bit rune */ }; /* --- /sys/include/libc.h Mon Apr 1 00:00:00 2013 +++ /sys/include/libc.h Mon Apr 1 00:00:00 2013 @@ -41,11 +41,11 @@ enum { - UTFmax = 3, /* maximum bytes per rune */ + 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, /* 32 bit rune */ }; /* --- /sys/src/9/port/lib.h Mon Apr 1 00:00:00 2013 +++ /sys/src/9/port/lib.h Mon Apr 1 00:00:00 2013 @@ -35,11 +35,11 @@ enum { - UTFmax = 3, /* maximum bytes per rune */ + 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, /* 16 bit rune */ }; /* --- /n/sources/plan9/386/include/u.h Fri Apr 13 00:41:24 2007 +++ /386/include/u.h Mon Apr 1 00:00:00 2013 @@ -8,7 +8,7 @@ typedef unsigned long long uvlong; typedef unsigned long uintptr; typedef unsigned long usize; -typedef ushort Rune; +typedef uint Rune; typedef union FPdbleword FPdbleword; typedef long jmp_buf[2]; #define JMPBUFSP 0 --- /n/sources/plan9/amd64/include/u.h Mon Sep 17 18:52:58 2012 +++ /amd64/include/u.h Mon Apr 1 00:00:00 2013 @@ -8,7 +8,7 @@ typedef unsigned long long uvlong; typedef unsigned long long uintptr; typedef unsigned long usize; -typedef ushort Rune; +typedef uint Rune; typedef union FPdbleword FPdbleword; typedef uintptr jmp_buf[2]; #define JMPBUFSP 0 --- /n/sources/plan9/arm/include/u.h Tue Mar 27 17:48:58 2012 +++ /arm/include/u.h Mon Apr 1 00:00:00 2013 @@ -9,7 +9,7 @@ typedef unsigned long long uvlong; typedef unsigned long uintptr; typedef unsigned long usize; -typedef ushort Rune; +typedef uint Rune; typedef union FPdbleword FPdbleword; typedef long jmp_buf[2]; #define JMPBUFSP 0 --- /n/sources/plan9/mips/include/u.h Fri Apr 13 00:41:25 2007 +++ /mips/include/u.h Mon Apr 1 00:00:00 2013 @@ -8,7 +8,7 @@ typedef unsigned long long uvlong; typedef unsigned long uintptr; typedef unsigned long usize; -typedef ushort Rune; +typedef uint Rune; typedef union FPdbleword FPdbleword; typedef long jmp_buf[2]; #define JMPBUFSP 0 --- /n/sources/plan9/power/include/u.h Tue Jul 7 21:20:57 2009 +++ /power/include/u.h Mon Apr 1 00:00:00 2013 @@ -8,7 +8,7 @@ typedef unsigned long long uvlong; typedef unsigned long uintptr; typedef unsigned long usize; -typedef ushort Rune; +typedef uint Rune; typedef union FPdbleword FPdbleword; typedef long jmp_buf[2]; #define JMPBUFSP 0 --- /n/sources/plan9/power64/include/u.h Fri May 11 14:01:09 2007 +++ /power64/include/u.h Mon Apr 1 00:00:00 2013 @@ -8,7 +8,7 @@ typedef unsigned long long uvlong; typedef unsigned long long uintptr; typedef unsigned long usize; -typedef ushort Rune; +typedef uint Rune; typedef union FPdbleword FPdbleword; typedef uintptr jmp_buf[2]; #define JMPBUFSP 0 --- /n/sources/plan9/sparc/include/u.h Fri Apr 13 00:41:25 2007 +++ /sparc/include/u.h Mon Apr 1 00:00:00 2013 @@ -8,7 +8,7 @@ typedef unsigned long long uvlong; typedef unsigned long uintptr; typedef unsigned long usize; -typedef ushort Rune; +typedef uint Rune; typedef union FPdbleword FPdbleword; typedef long jmp_buf[2]; #define JMPBUFSP 0