shithub: riscv

Download patch

ref: b7811b8bc6ca175a57fb3743a7ef6945926ca5fc
parent: eff23cb32e2b9842d5e104216ae8ae28227bf7d3
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Tue Oct 4 12:39:08 EDT 2011

tcs: fix special character detection

--- a/sys/src/cmd/tcs/html.c
+++ b/sys/src/cmd/tcs/html.c
@@ -439,7 +439,7 @@
 			}
 			continue;
 		out:
-			if(strchr("<>&\"'", c)){
+			if((c & 0x7f) == c && strchr("<>&\"'", c)){
 				s = ';';
 				i = sprint(buf, "&%s", findbyrune(c));
 				goto bad;
--