From 3a0400887de9df81e4d4fb3bc3dec52af2d49f80 Mon Sep 17 00:00:00 2001 From: Charles Forsyth Date: Thu, 6 Jun 2013 20:58:48 +0000 Subject: UTFerror changes, Runemax/Runemask introduced --- module/sys.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'module') diff --git a/module/sys.m b/module/sys.m index 2e1a4e02..4c399fa4 100644 --- a/module/sys.m +++ b/module/sys.m @@ -112,8 +112,10 @@ Sys: module EXPWAIT: con 0; EXPASYNC: con 1; - UTFmax: con 4; - UTFerror: con 16r80; + UTFmax: con 4; # maximum bytes per rune in UTF-8 + UTFerror: con 16rFFFD; # decoding error in UTF + Runemax: con 16r10FFFF; # 21-bit rune + Runemask: con 16r1FFFFF; # bits used by runes announce: fn(addr: string): (int, Connection); aprint: fn(s: string, *): array of byte; -- cgit v1.2.3