git: 9front

Download patch

ref: c2efa4e3cfe20b4bdc5dacd6898c96675d4e3ea4
parent: ea0d0f295f646e18ab39d64ff439c756eae546eb
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;
--