From d90014f6464dd122afdd1a8cd81933e72c72619a Mon Sep 17 00:00:00 2001 From: Charles Forsyth Date: Fri, 7 Jun 2013 08:49:25 +0000 Subject: UTFmax increased, Runeerror changed --- Plan9/arm/include/lib9.h | 6 ++++-- Plan9/mips/include/lib9.h | 6 ++++-- Plan9/power/include/lib9.h | 6 ++++-- Plan9/sparc/include/lib9.h | 6 ++++-- 4 files changed, 16 insertions(+), 8 deletions(-) (limited to 'Plan9') diff --git a/Plan9/arm/include/lib9.h b/Plan9/arm/include/lib9.h index e60fba8a..de314ca7 100644 --- a/Plan9/arm/include/lib9.h +++ b/Plan9/arm/include/lib9.h @@ -41,10 +41,12 @@ extern int tokenize(char*, char**, int); 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 = 0x80, /* decoding error in UTF */ + Runeerror = 0xFFFD, /* decoding error in UTF */ + Runemax = 0x10FFFF, /* 21-bit rune */ + Runemask = 0x1FFFFF, /* bits used by runes (see grep) */ }; /* diff --git a/Plan9/mips/include/lib9.h b/Plan9/mips/include/lib9.h index 91e0f3d4..003188d3 100644 --- a/Plan9/mips/include/lib9.h +++ b/Plan9/mips/include/lib9.h @@ -41,10 +41,12 @@ extern int tokenize(char*, char**, int); 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 = 0x80, /* decoding error in UTF */ + Runeerror = 0xFFFD, /* decoding error in UTF */ + Runemax = 0x10FFFF, /* 21-bit rune */ + Runemask = 0x1FFFFF, /* bits used by runes (see grep) */ }; /* diff --git a/Plan9/power/include/lib9.h b/Plan9/power/include/lib9.h index 91e0f3d4..003188d3 100644 --- a/Plan9/power/include/lib9.h +++ b/Plan9/power/include/lib9.h @@ -41,10 +41,12 @@ extern int tokenize(char*, char**, int); 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 = 0x80, /* decoding error in UTF */ + Runeerror = 0xFFFD, /* decoding error in UTF */ + Runemax = 0x10FFFF, /* 21-bit rune */ + Runemask = 0x1FFFFF, /* bits used by runes (see grep) */ }; /* diff --git a/Plan9/sparc/include/lib9.h b/Plan9/sparc/include/lib9.h index 91e0f3d4..003188d3 100644 --- a/Plan9/sparc/include/lib9.h +++ b/Plan9/sparc/include/lib9.h @@ -41,10 +41,12 @@ extern int tokenize(char*, char**, int); 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 = 0x80, /* decoding error in UTF */ + Runeerror = 0xFFFD, /* decoding error in UTF */ + Runemax = 0x10FFFF, /* 21-bit rune */ + Runemask = 0x1FFFFF, /* bits used by runes (see grep) */ }; /* -- cgit v1.2.3