From 6cadd03bbeace1c256ba875c2e6a877f924877cd Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 31 Dec 2012 21:09:46 +0100 Subject: fix utf and rune handling in preparation for 32bit runes --- sys/src/cmd/unix/drawterm/libc/utf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/src/cmd/unix/drawterm/libc/utf.h') diff --git a/sys/src/cmd/unix/drawterm/libc/utf.h b/sys/src/cmd/unix/drawterm/libc/utf.h index 623bfda94..f7c3ebd83 100644 --- a/sys/src/cmd/unix/drawterm/libc/utf.h +++ b/sys/src/cmd/unix/drawterm/libc/utf.h @@ -8,7 +8,8 @@ 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 (<) */ - Runeerror = 0x80, /* decoding error in UTF */ + Runeerror = 0xFFFD, /* decoding error in UTF */ + Runemax = 0xFFFF, /* 16 bit rune */ }; /* -- cgit v1.2.3