Commit Diff


commit - 610199193ccd590fd214bcf405e3f0fb2a739408
commit + 5cb6d5d9c236f7a11b7c9e0d2c991e1bf9ddd363
blob - 21fec99fba18c86c30f0f1c5fe03a8d0feb90b28
blob + e7a602d529c6aa011714c4b88a3d1b0de3133384
--- include/utf.h
+++ include/utf.h
@@ -11,7 +11,7 @@ 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 */
 };
 
 /* Edit .+1,/^$/ | cfn $PLAN9/src/lib9/utf/?*.c | grep -v static |grep -v __ */